other versions
ATA_FORMAT_DSM_TRIM_(9) | libata SCSI translation/emulat | ATA_FORMAT_DSM_TRIM_(9) |
NAME¶
ata_format_dsm_trim_descr - SATL Write Same to DSM TrimSYNOPSIS¶
size_t ata_format_dsm_trim_descr(struct scsi_cmnd * cmd, u32 trmax, u64 sector, u32 count);
ARGUMENTS¶
struct scsi_cmnd * cmdSCSI command being translated
u32 trmax
Maximum number of entries that will fit in sector_size
bytes.
u64 sector
Starting sector
u32 count
Total Range of request in logical sectors
DESCRIPTION¶
Rewrite the WRITE SAME descriptor to be a DSM TRIM little-endian formatted descriptor.Upto 64 entries of the format: 63:48 Range Length 47:0 LBA
Range Length of 0 is ignored. LBA's should be sorted order and not overlap.
NOTE¶
this is the same format as ADD LBA(S) TO NV CACHE PINNED SETRETURN¶
Number of bytes copied into sglist.AUTHOR¶
Jeff GarzikAuthor.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |