'\" t .\" Title: ata_format_sct_write_same .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: libata SCSI translation/emulation .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "ATA_FORMAT_SCT_WRITE" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "libata SCSI translation/emulat" .\" ----------------------------------------------------------------- .\" * 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_format_sct_write_same \- SATL Write Same to ATA SCT Write Same .SH "SYNOPSIS" .HP \w'size_t\ ata_format_sct_write_same('u .BI "size_t ata_format_sct_write_same(struct\ scsi_cmnd\ *\ " "cmd" ", u64\ " "lba" ", u64\ " "num" ");" .SH "ARGUMENTS" .PP \fIstruct scsi_cmnd * cmd\fR .RS 4 SCSI command being translated .RE .PP \fIu64 lba\fR .RS 4 Starting sector .RE .PP \fIu64 num\fR .RS 4 Number of sectors to be zero\*(Aqd\&. .RE .SH "DESCRIPTION" .PP Rewrite the WRITE SAME payload to be an SCT Write Same formatted descriptor\&. .SH "NOTE" .PP Writes a pattern (0\*(Aqs) in the foreground\&. .SH "RETURN" .PP Number of bytes copied into sglist\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br