Query: ata_wait_ready
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ATA_WAIT_READY(9) libata Core Internals ATA_WAIT_READY(9)NAMEata_wait_ready - wait for link to become readySYNOPSISint ata_wait_ready(struct ata_link * link, unsigned long deadline, int (*check_ready) (struct ata_link *link));ARGUMENTSlink link to be waited on deadline deadline jiffies for the operation check_ready callback to check link readinessDESCRIPTIONWait for link to become ready. check_ready should return positive number if link is ready, 0 if it isn't, -ENODEV if link doesn't seem to be occupied, other errno for other error conditions. Transient -ENODEV conditions are allowed for ATA_TMOUT_FF_WAIT.LOCKINGEH context.RETURNS0 if linke is ready before deadline; otherwise, -errno.AUTHORJeff Garzik Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 ATA_WAIT_READY(9)