Print this page
12315 errors in section 7i of the manual
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man7i/sesio.7i.man.txt
+++ new/usr/src/man/man7i/sesio.7i.man.txt
1 1 SESIO(7I) Ioctl Requests SESIO(7I)
2 2
3 3 NAME
4 4 sesio - enclosure services device driver interface
5 5
6 6 SYNOPSIS
7 7 #include <sys/scsi/targets/sesio.h>
8 8
9 9 DESCRIPTION
10 10 The ses device driver provides the following ioctls as a means to access
11 11 SCSI enclosure services devices.
12 12
13 13 IOCTLS
14 14 The ses driver supports the following ioctls:
15 15
16 16 SES_IOCTL_GETSTATE This ioctl obtains enclosure state in the ses_ioctl
17 17 structure.
18 18
19 19 SES_IOCTL_SETSTATE This ioctl is used to set parameters on the enclosure
20 20 services device. The ses_ioctl structure is used to
21 21 pass information into the driver.
22 22
23 23 EXAMPLES
24 24 Example 1 Using the SES_IOCTL_GETSTATE ioctl
25 25
26 26 The following example uses the SES_IOCTL_GETSTATE ioctl to recover 20
27 27 bytes of page 4 from a previously opened device.
28 28
29 29 char abuf[30];
30 30 struct ses_ioctl *sesp;
31 31 int status;
32 32
33 33 sesp = (ses_ioctl *)abuf;
34 34 sesp->size = 20;
35 35 sesp->page_code = 4;
36 36 status = ioctl(fd, SES_IOCTL_GETSTATE, abuf);
37 37
38 38 ERRORS
39 39 EIO The ses driver was unable to obtain data from the enclosure
40 40 services device or the data transfer could not be completed.
41 41
42 42 ENOTTY The ses driver does not support the requested ioctl function.
43 43
44 44 ENXIO The enclosure services device does not exist.
45 45
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
46 46 EFAULT The user specified a bad data length.
47 47
48 48 STRUCTURES
49 49 The ses_ioctl structure has the following fields:
50 50
51 51 uint32_t page_size; /* Size of buffer that follows */
52 52 uint8_t page_code: /* Page to be read/written */
53 53 uint8_t reserved[3]; /* Reserved; Set to 0 */
54 54
55 55 ARCHITECTURE
56 - SPARC
56 + SPARC x86
57 57
58 58 SEE ALSO
59 - ses(7D), ioctl(9E)
59 + ioctl(2), ses(7D)
60 60
61 -illumos October 23, 2017 illumos
61 +illumos February 17, 2020 illumos
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX