ata_build_rw_tf(9)

ata_build_rw_tf9

Build ata taskfile for given read/write request

Usage

int ata_build_rw_tf(struct ata_taskfile * tf, struct ata_device * dev, u64 block, u32 n_block, unsigned int tf_flags, unsigned int tag);

Arguments

tf

Target ATA taskfile

dev

ATA device tf belongs to

block

Block address

n_block

Number of blocks

tf_flags

RW/FUA etc...

tag

tag

Overview

LOCKING: None.

Build ATA taskfile tf for read/write request described by block, n_block, tf_flags and tag on dev.

Return

0 on success, -ERANGE if the request is too large for dev, -EINVAL if the request is invalid.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

Jeff Garzik

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.