On 17 Sep 2004 14:25:10 -0000, Naren <ns78@xxxxxxxxxxxxxx> wrote: > Thanks mate. I have got a working program now. > You guys in this list are just great :) Naren, You'll want to add some error checking on the allocation of the new vma because it might fail (like any memory allocation) and then you'll end up in limbo, likely resulting in the process later crashing or perhaps an oops. Cheers, Jon. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/