Hi, kishore wrote: > I am using kmalloc in my module. It returned NULL; by that i understood > there may be some scarcity in allocating the requested amount of memory ( i > requested for 64 bytes). I returned -ENOMEM, but i thought there may be some > way to return error number rather than what am using. The kmalloc() can allocate up to 128 Kilo Bytes. Allocation for only 64 Bytes SHOULD NOT FAIL! I doubt you passed wrong parameters to kmalloc(). Are you using "kmalloc(64, GFP_KERNEL)" ? Are you using "kfree()" after you finished using memory allocated by kmalloc()? Regards. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/