Driver Entry Points sata_tran_ioctl(9E) NAME sata_tran_ioctl - SATA HBA-specific IOCTLs handler SYNOPSIS #include int sata_tran_ioctl(dev_info_t *dev_info, int cmd, intptr_t arg); INTERFACE LEVEL Consolidation Private PARAMETERS dev_info Pointer to a dev_info_t structure, referring to the HBA device instance. cmd Argument specifying IOCTL operation arg Pointer to operation-specific data DESCRIPTION sata_tran_ioctl() is a SATA HBA function performing HBA-specific IOCTLs operations. The arg points to IOCTL argument containing HBA's operation-specific information. SATA HBA Framework will pass to SATA HBA driver sata_tran_ioctl() function all IOCTL requests that cannot be handled by SATA HBA Framework itself not by nexus ioctl handler. The 'mode', 'cred_p' and 'rval_p' arguments of ioctl(9E) call are dropped and device number ('dev') argument of an ioctl(9E) is converted to dev_info. 'cmd' and 'arg' arguments are passed without change to sata_tran_ioctl(). RETURN VALUE sata_tran_ioctl() returns SATA_SUCCESS on success or SATA_FAILURE on failure. In a case of a failure, the errno has to be set up to indicate a type of error. If a specified operation is not supported SATA HBA driver, errno shall be set to ENOSUP.