hello I really don't know the answer to your question, but AFAIK, in the userspace code, the check for a return from the mmap() is not by checking it with NULL, but with MAP_FAILED, which is -1. regards Sridhar -- Anyone can do any amount of work provided it isn't the work he is supposed to be doing -- Murphy's Laws on Work -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/