On Wed, 2004-04-28 at 11:19, bunty wrote: > > hi Gabor, > let me explain you what exactly i want. i want to read and write to /proc entry file that i created in /proc after Praveen help me how to create proc entry.My questio whether i can use read and write and open funcion calls on /proc entry to update its contents if not can you tell me how can i acheive it? In my opinion, u can use the system calls on proc files. Eg:- open("/proc/ur_entry",...) or prompt# echo something > /proc/ur_entry Please refer the chapter for proc filesytem for more details... > regards, > parag. > Regards, Shine Mohamed Jabbar > > On Tue, 27 Apr 2004 Gabor Fekete wrote : > >Hi > > > >On Monday 26 April 2004 16.54, bunty wrote: > > > 2)what is the use of read_write.c file in fs directory of kernel > > > source? the file contains sys_read, sys_write. why there is no function > > > that will read a user space file and write to it. > > > >what do you mean by "user space file"? > >actually these two functions read from and write to files. > >They are system calls, called by write() and read() from user space. > > > >feketga > > > > > >-- > >Kernelnewbies: Help each other learn about the Linux kernel. > >Archive: http://mail.nl.linux.org/kernelnewbies/ > >FAQ: http://kernelnewbies.org/faq/ > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/