Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: core: Make the scsi_alloc_sgtables() documentation more accurate

The current scsi_alloc_sgtables() documentation does not accurately explain
what this function does. Hence improve the documentation of this function.

Link: https://lore.kernel.org/r/20210415220826.29438-2-bvanassche@acm.org
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
76fc0df9 1f02beff

+5 -2
+5 -2
drivers/scsi/scsi_lib.c
··· 999 999 } 1000 1000 1001 1001 /** 1002 - * scsi_alloc_sgtables - allocate S/G tables for a command 1003 - * @cmd: command descriptor we wish to initialize 1002 + * scsi_alloc_sgtables - Allocate and initialize data and integrity scatterlists 1003 + * @cmd: SCSI command data structure to initialize. 1004 + * 1005 + * Initializes @cmd->sdb and also @cmd->prot_sdb if data integrity is enabled 1006 + * for @cmd. 1004 1007 * 1005 1008 * Returns: 1006 1009 * * BLK_STS_OK - on success