1ATA_DEV_SAME_DEVICE(9) libata Core Internals ATA_DEV_SAME_DEVICE(9)
2
3
4
6 ata_dev_same_device - Determine whether new ID matches configured
7 device
8
10 int ata_dev_same_device(struct ata_device * dev,
11 unsigned int new_class, const u16 * new_id);
12
14 dev
15 device to compare against
16
17 new_class
18 class of the new device
19
20 new_id
21 IDENTIFY page of the new device
22
24 Compare new_class and new_id against dev and determine whether dev is
25 the device indicated by new_class and new_id.
26
28 None.
29
31 1 if dev matches new_class and new_id, 0 otherwise.
32
34 Jeff Garzik
35 Author.
36
38Kernel Hackers Manual 2.6. November 2011 ATA_DEV_SAME_DEVICE(9)