PDA

View Full Version : "get_user" PC hang in fc2?



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.

valkyrie
19th August 2004, 11:41 AM
dear all,

The issue with calling "get_user" and hang PC immediately, i was thinking if it could be related to the high memory being configured in fc2? Anybody got any idea on this?

In include/linux/autoconf.h

/*
* Firmware Drivers
*/
#define CONFIG_EDD_MODULE 1
#undef CONFIG_NOHIGHMEM
#define CONFIG_HIGHMEM4G 1
#undef CONFIG_HIGHMEM64G
#define CONFIG_HIGHMEM 1
#define CONFIG_HIGHPTE 1
#undef CONFIG_MATH_EMULATION
#define CONFIG_MTRR 1
#undef CONFIG_EFI
#define CONFIG_REGPARM 1

Later i would try to use kiobuf ... hopefully it works ... otherwise i'm behind schedule :(
Thanks.

valkyrie
19th August 2004, 01:37 PM
hi all,

It seems that kiobuf need a patch, so wouldn't be trying this.
Anyway, anybody knows how to create a common accessable memory area to share between user and kernel space?
Thanks.