Scroll to navigation

ATA_ID_STRING(9) libata Library ATA_ID_STRING(9)

NAME

ata_id_string - Convert IDENTIFY DEVICE page into string

SYNOPSIS

void ata_id_string(const u16 * id, unsigned char * s, unsigned int ofs, unsigned int len);

ARGUMENTS

const u16 * id

IDENTIFY 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 even number.

DESCRIPTION

The strings in the IDENTIFY DEVICE page are broken up into 16-bit chunks. Run through the string, and output each 8-bit chunk linearly, regardless of platform.

LOCKING: caller.

AUTHOR

Jeff Garzik

Author.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11