'\" t .\" Title: ata_set_max_sectors .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: libata Core Internals .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "ATA_SET_MAX_SECTORS" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "libata Core Internals" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ata_set_max_sectors \- Set max sectors .SH "SYNOPSIS" .HP \w'int\ ata_set_max_sectors('u .BI "int ata_set_max_sectors(struct\ ata_device\ *\ " "dev" ", u64\ " "new_sectors" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 target device .RE .PP \fInew_sectors\fR .RS 4 new max sectors value to set for the device .RE .SH "DESCRIPTION" .PP Set max sectors of \fIdev\fR to \fInew_sectors\fR\&. .SH "RETURN" .PP 0 on success, \-EACCES if command is aborted or denied (due to previous non\-volatile SET_MAX) by the drive\&. \-EIO on other errors\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br