On Sun, Jun 29, 2003 at 06:58:14AM +0100, pankaj chauhan wrote: > > > hi all , , > > as the library function like fopen , fwrite are not available in > kernel space . so if i want to write some data in a file from a > kernel module ( actually it is a serial mouse driver ), how it can be > done ? Don't do that. Seriously, do not do that. Do it from userspace if you really need to write a file. Read the archives of this list for a more detailed reason for not doing this from kernel space. Good luck, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/