1ATA_DEV_INIT_PARAMS(9) libata Core Internals ATA_DEV_INIT_PARAMS(9)
2
3
4
6 ata_dev_init_params - Issue INIT DEV PARAMS command
7
9 unsigned int ata_dev_init_params(struct ata_device * dev, u16 heads,
10 u16 sectors);
11
13 dev
14 Device to which command will be sent
15
16 heads
17 Number of heads (taskfile parameter)
18
19 sectors
20 Number of sectors (taskfile parameter)
21
23 Kernel thread context (may sleep)
24
26 0 on success, AC_ERR_* mask otherwise.
27
29 Jeff Garzik
30 Author.
31
33Kernel Hackers Manual 3.10 June 2019 ATA_DEV_INIT_PARAMS(9)