Hi Manisha... > I am having problem reading file if the file is opened with O_DIERCT > flag.The error given by read system call is 'Bad Address'. Not an expert in I/O, but perhaps you need to use vmalloc() instead of kmalloc()/alloc_pages()? it's only my guess that there is a chance what you need is a block of memory that is physically contigous, not virtually contigous. regards, Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/