valkyrie
19th August 2004, 08:39 AM
hi,
I'm using fc2 (2.6.5-1.358) and working on a kernel device driver. In the driver module, there are a few ioctls. Some are _IO and _IOR. I could call those ioctl with _IO and _IOR from user space problem using ioctl function call and no problem. But if inside the handling code of any of the _IOR ioctl, i use "get_user" to transfer user space data to kernel space, my PC would hang.
I couldn't understand?
Any help would be appreciated.
Thanks.
I'm using fc2 (2.6.5-1.358) and working on a kernel device driver. In the driver module, there are a few ioctls. Some are _IO and _IOR. I could call those ioctl with _IO and _IOR from user space problem using ioctl function call and no problem. But if inside the handling code of any of the _IOR ioctl, i use "get_user" to transfer user space data to kernel space, my PC would hang.
I couldn't understand?
Any help would be appreciated.
Thanks.