1ATA_BUILD_RW_TF(9) libata Core Internals ATA_BUILD_RW_TF(9)
2
3
4
6 ata_build_rw_tf - Build ATA taskfile for given read/write request
7
9 int ata_build_rw_tf(struct ata_taskfile * tf, struct ata_device * dev,
10 u64 block, u32 n_block, unsigned int tf_flags,
11 unsigned int tag);
12
14 tf
15 Target ATA taskfile
16
17 dev
18 ATA device tf belongs to
19
20 block
21 Block address
22
23 n_block
24 Number of blocks
25
26 tf_flags
27 RW/FUA etc...
28
29 tag
30 tag
31
33 None.
34
35 Build ATA taskfile tf for read/write request described by block,
36 n_block, tf_flags and tag on dev.
37
39 0 on success, -ERANGE if the request is too large for dev, -EINVAL if
40 the request is invalid.
41
43 Jeff Garzik
44 Author.
45
47Kernel Hackers Manual 3.10 June 2019 ATA_BUILD_RW_TF(9)