On Fri, Oct 19, 2001 at 07:51:18PM -0400, Amit A Purohit wrote: > Hi, > I am trying to write a module that allocates memory in kernel ( > kmalloc ) and maps it to the user space using do_mmap_pgoff. I have > attached the code for the same. When I load the module and run ioctl > from the user program it is giving error "Unable to handle kernel pageing > request". Any help is appreciated. I'm too lazy to look at your code, but example of how to do this is on kernelnewbies.org, also source of oprofile.sf.net btw, you should avoid ioctl. Prefer sysctl or even proc regards john -- "I'm frightened of figurines." - Pulp - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/