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

NAME

6       ata_exec_internal - execute libata internal command
7

SYNOPSIS

9       unsigned ata_exec_internal(struct ata_device * dev,
10                                  struct ata_taskfile * tf, const u8 * cdb,
11                                  int dma_dir, void * buf,
12                                  unsigned int buflen, unsigned long timeout);
13

ARGUMENTS

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

DESCRIPTION

37       Wrapper around ata_exec_internal_sg which takes simple buffer instead
38       of sg list.
39

LOCKING

41       None. Should be called with kernel context, might sleep.
42

RETURNS

44       Zero on success, AC_ERR_* mask on failure
45

AUTHOR

47       Jeff Garzik
48           Author.
49
51Kernel Hackers Manual 3.10         June 2019              ATA_EXEC_INTERNAL(9)
Impressum