Prev, Top Notes, Next

Adventures In ioctl(2) Support
EINVAL vs ENOTTY

Just as some system call use different errno(3) values for the same cause, so do ioctl(2) requests:
ioctl(fildes = 3 "/dev/sdb1", request = MTIOCGET, data = 0x7FFF88464310) failed, Invalid argument (22, EINVAL) because ioctl request or ioctl data is not valid