There are two ioctl functions available:
ioctl(fd, SG_SET_TIMEOUT, &Timeout);
Timeout
ioctl(fd, SG_GET_TIMEOUT, &Timeout);