Inappropriate ioctl for device
hedayati.mo at gmail.com
Fri Dec 24 10:21:53 UTC 2010
I'm writing a simple char device. So far everything went so good
(read/write), but here I'm going to add support for ioctl.
ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td)
int error = 0;
and I'm calling it here:
len = ioctl(cd, 0);
but when runnig it says:
ioctl: Inappropriate ioctl for device
where's the problem?
More information about the freebsd-questions