Skip to contentSkip to conversation

Unable to handle kernel paging request at virtual address....

DISCUSSION Femitha Majeed 2 participants 2 messages Nov 10, 2001 – Nov 11, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to write a kernel module which reads the files in the /proc directory.

When I do an insmod filename.o, I get the following error:

Unable to handle kernel paging request at virtual address....

In the module, I use kmalloc to allocate memory. Is that the reason I am getting this error?

I am very new to writing kernel modules, I would really appreciate a reply.

Thanks,
Femitha Majeed

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

#1 lore raw
Quoted 2 lines · Femitha Majeed

I am trying to write a kernel module which reads the files in the /proc directory.

The idea behind /proc is that it allows userland to read or write certain kernel variables. You shouldn't read a /proc file from within the kernel.

Quoted 5 lines

When I do an insmod filename.o, I get the following error:

Unable to handle kernel paging request at virtual address....

In the module, I use kmalloc to allocate memory. Is that the reason I am getting this error?

Without having your source it's impossible to tell. Please read the procfs guide in your kernel tree or at
http://www.kernelnewbies.org/documents/ .

Quoted 1 line

I am very new to writing kernel modules, I would really appreciate a reply.

Go to the www.kernelnewbies.org website and subscribe to the kernelnewbies mailing list. The #kernelnewbies IRC channel is also quite helpful.

Erik

Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/