1SCSI_TEST_UNIT_READY(9)         SCSI mid layer         SCSI_TEST_UNIT_READY(9)
2
3
4

NAME

6       scsi_test_unit_ready - test if unit is ready
7

SYNOPSIS

9       int scsi_test_unit_ready(struct scsi_device * sdev, int timeout,
10                                int retries,
11                                struct scsi_sense_hdr * sshdr_external);
12

ARGUMENTS

14       sdev
15           scsi device to change the state of.
16
17       timeout
18           command timeout
19
20       retries
21           number of retries before failing
22
23       sshdr_external
24           Optional pointer to struct scsi_sense_hdr for returning sense. Make
25           sure that this is cleared before passing in.
26

DESCRIPTION

28       Returns zero if unsuccessful or an error if TUR failed. For removable
29       media, a return of NOT_READY or UNIT_ATTENTION is translated to
30       success, with the ->changed flag updated.
31

AUTHORS

33       James Bottomley <James.Bottomley@hansenpartnership.com>
34           Author.
35
36       Rob Landley <rob@landley.net>
37           Author.
38
40Kernel Hackers Manual 2.6.         June 2019           SCSI_TEST_UNIT_READY(9)
Impressum