ioctl() in driver
I am writing a driver. After calling "iosDrvInstall" and
"iosDevInstall", "pciIntConnect", I tried to call the "open", "ioctl"
and "read" in another app program. "open" succeeded and returned me a
file descriptor; then I use this returned fd value to call "ioctl" but
the ioctl failed. According to the vxWorks manual, ioctl returns
"ERROR" when the fd is invalid. But I am just using the same fd that
"open" returned. Is there anybody could help me with this? Thanks a lot!
Re: ioctl() in driver
Probably the ioctl operation you want is not supported on that fd (your
driver?). Use perror() and see if you can get a more specific error