1ATA_EXEC_INTERNAL_SG(9)      libata Core Internals     ATA_EXEC_INTERNAL_SG(9)
2
3
4

NAME

6       ata_exec_internal_sg - execute libata internal command
7

SYNOPSIS

9       unsigned ata_exec_internal_sg(struct ata_device * dev,
10                                     struct ata_taskfile * tf, const u8 * cdb,
11                                     int dma_dir, struct scatterlist * sgl,
12                                     unsigned int n_elem,
13                                     unsigned long timeout);
14

ARGUMENTS

16       dev
17           Device to which the command is sent
18
19       tf
20           Taskfile registers for the command and the result
21
22       cdb
23           CDB for packet command
24
25       dma_dir
26           Data tranfer direction of the command
27
28       sgl
29           sg list for the data buffer of the command
30
31       n_elem
32           Number of sg entries
33
34       timeout
35           Timeout in msecs (0 for default)
36

DESCRIPTION

38       Executes libata internal command with timeout.  tf contains command on
39       entry and result on return. Timeout and error conditions are reported
40       via return value. No recovery action is taken after a command times
41       out. It's caller's duty to clean up after timeout.
42

LOCKING

44       None. Should be called with kernel context, might sleep.
45

RETURNS

47       Zero on success, AC_ERR_* mask on failure
48

AUTHOR

50       Jeff Garzik
51           Author.
52
54Kernel Hackers Manual 3.10         June 2019           ATA_EXEC_INTERNAL_SG(9)
Impressum