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, UNIT_ATTENTION sets ->changed flag.
30

AUTHORS

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