SIOC_INQUIRY_PAGE
This IOCTL command returns an inquiry page from the device. The page is selected by specifying the page_code in the inquiry_page structure.
See the appropriate device manual to determine the supported inquiry pages and content.
The data structure is
struct inquiry_page
{
char page_code;
char data[INQUIRYPAGE];
};
An example of the SIOC_INQUIRY_PAGE command
is
#include <sys/Atape.h>
struct inquiry_page inq_page;
/* get inquiry page x83 */
inq_page.page_code = 0x83;
if (!ioctl (fd, SIOC_INQUIRY_PAGE, &inq_page))
{
printf ("The SIOC_INQUIRY_PAGE ioctl succeeded\n");
}
else
{
perror ("The SIOC_INQUIRY_PAGE ioctl failed");
sioc_request_sense();
}