1ATA_DEV_READ_ID(9) libata Core Internals ATA_DEV_READ_ID(9)
2
3
4
6 ata_dev_read_id - Read ID data from the specified device
7
9 int ata_dev_read_id(struct ata_device * dev, unsigned int * p_class,
10 unsigned int flags, u16 * id);
11
13 dev
14 target device
15
16 p_class
17 pointer to class of the target device (may be changed)
18
19 flags
20 ATA_READID_* flags
21
22 id
23 buffer to read IDENTIFY data into
24
26 Read ID data from the specified device. ATA_CMD_ID_ATA is performed on
27 ATA devices and ATA_CMD_ID_ATAPI on ATAPI devices. This function also
28 issues ATA_CMD_INIT_DEV_PARAMS for pre-ATA4 drives.
29
31 ATA_CMD_ID_ATA is optional for early drives and right now we abort if
32 we hit that case.
33
35 Kernel thread context (may sleep)
36
38 0 on success, -errno otherwise.
39
41 Jeff Garzik
42 Author.
43
45Kernel Hackers Manual 2.6. June 2019 ATA_DEV_READ_ID(9)