Thanks Dhiman, Gaurav and Shine Mohamed Jabbar. I used the exact definition for read and it worked! With kind regards, K Shakthi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/