1. NAME

ata_sg_init - Associate command with scatter-gather table.

2. SYNOPSIS

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

3. ARGUMENTS

qc
    Command to be associated

sg
    Scatter-gather table.

n_elem
    Number of elements in s/g table.

4. DESCRIPTION

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

5. LOCKING

spin_lock_irqsave(host lock)

6. AUTHOR

Jeff Garzik
    Author.

7. COPYRIGHT