---
name: "ata_tf_read_block"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_tf_read_block"
---

# ata\_tf\_read\_block(9)

Read block address from ATA taskfile

## NAME

ata\_tf\_read\_block - Read block address from ATA taskfile

## SYNOPSIS

**u64 ata\_tf\_read\_block(const struct ata\_taskfile \*** *tf***, struct ata\_device \*** *dev***);**

## ARGUMENTS

*tf*

ATA taskfile of interest

*dev*

ATA device *tf* belongs to

## DESCRIPTION

LOCKING: None.

Read block address from *tf*. This function can handle all three address formats - LBA, LBA48 and CHS. tf-\>protocol and flags select the address format to use.

## RETURN

Block address read from *tf*.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
