The following
ioctl(2) calls apply to
SES devices. They are defined in the header file
<scsipi/ses.h> (q.v.).
SESIOC_GETNOBJ
Used to find out how many SES objects are driven by this particular device instance.
SESIOC_GETOBJMAP
Read, from the kernel, an array of SES objects which contains the object identifier, which sub-enclosure it is in, and the SES type of the object.
SESIOC_GETENCSTAT
Get the overall enclosure status.
SESIOC_SETENCSTAT
Set the overall enclosure status.
SESIOC_GETOBJSTAT
Get the status of a particular object.
SESIOC_SETOBJSTAT
Set the status of a particular object.
SESIOC_GETTEXT
Get the associated help text for an object (not yet implemented). SES devices often have descriptive text for an object which can tell you things like location (e.g, "left power supply").
SESIOC_INIT
Initialize the enclosure.