1ATA_ID_C_STRING(9)              libata Library              ATA_ID_C_STRING(9)
2
3
4

NAME

6       ata_id_c_string - Convert IDENTIFY DEVICE page into C string
7

SYNOPSIS

9       void ata_id_c_string(const u16 * id, unsigned char * s,
10                            unsigned int ofs, unsigned int len);
11

ARGUMENTS

13       id
14           IDENTIFY DEVICE results we will examine
15
16       s
17           string into which data is output
18
19       ofs
20           offset into identify device page
21
22       len
23           length of string to return. must be an odd number.
24

DESCRIPTION

26       This function is identical to ata_id_string except that it trims
27       trailing spaces and terminates the resulting string with null.  len
28       must be actual maximum length (even number) + 1.
29

LOCKING

31       caller.
32

AUTHOR

34       Jeff Garzik
35           Author.
36
38Kernel Hackers Manual 3.10         June 2019                ATA_ID_C_STRING(9)
Impressum