---
name: "ata_read_native_max_address"
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_read_native_max_address"
---

# ata\_read\_native\_max\_address(9)

Read native max address

## NAME

ata\_read\_native\_max\_address - Read native max address

## SYNOPSIS

**int ata\_read\_native\_max\_address(struct ata\_device \*** *dev***, u64 \*** *max\_sectors***);**

## ARGUMENTS

*dev*

target device

*max\_sectors*

out parameter for the result native max address

## DESCRIPTION

Perform an LBA48 or LBA28 native size query upon the device in question.

## RETURN

0 on success, -EACCES if command is aborted by the drive. -EIO on other errors.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
