other versions
ATA_ID_C_STRING(9) | libata Library | ATA_ID_C_STRING(9) |
NAME¶
ata_id_c_string - Convert IDENTIFY DEVICE page into C stringSYNOPSIS¶
void ata_id_c_string(const u16 * id, unsigned char * s, unsigned int ofs, unsigned int len);
ARGUMENTS¶
const u16 * idIDENTIFY DEVICE results we will examine
unsigned char * s
string into which data is output
unsigned int ofs
offset into identify device page
unsigned int len
length of string to return. must be an odd number.
DESCRIPTION¶
This function is identical to ata_id_string except that it trims trailing spaces and terminates the resulting string with null. len must be actual maximum length (even number) + 1.LOCKING: caller.
AUTHOR¶
Jeff GarzikAuthor.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |