1ATA_SG_INIT(9)                  libata Library                  ATA_SG_INIT(9)
2
3
4

NAME

6       ata_sg_init - Associate command with scatter-gather table.
7

SYNOPSIS

9       void ata_sg_init(struct ata_queued_cmd * qc, struct scatterlist * sg,
10                        unsigned int n_elem);
11

ARGUMENTS

13       qc
14           Command to be associated
15
16       sg
17           Scatter-gather table.
18
19       n_elem
20           Number of elements in s/g table.
21

DESCRIPTION

23       Initialize the data-related elements of queued_cmd qc to point to a
24       scatter-gather table sg, containing n_elem elements.
25

LOCKING

27       spin_lock_irqsave(host lock)
28

AUTHOR

30       Jeff Garzik
31           Author.
32
34Kernel Hackers Manual 2.6.         June 2019                    ATA_SG_INIT(9)
Impressum