Hi Parag, I am not sure whether I understand your original question correctly. However if you are looking for a way to communicate between the kernel and user space through the /proc interface, the link given below (Chapter 5 of LKPMG) does talk about it. However you will need to use "create_proc_entry" or "create_proc_read_entry" in kernels 2.4 or higher (according as to whether you need a read/write or a read-only interface) instead of "proc_register" as given there. You can check out the code in the file <linux-src>/fs/proc/proc_misc.c In create_proc_read_entry, you can directly specify a read function. If you are using create_proc_entry, you will have to specify the read and write functions through appropriate entries of "struct proc_dir_entry" and "struct file_operations". regards, Praveen. On Tue, 27 Apr 2004 mohanlal jangir wrote : >See this >http://www.dirac.org/linux/writing/lkmpg/lkmpg.html#AEN715 > >Also read about copy_to_user/copy_from_user functions. > >Regards >Mohanlal > >----- Original Message ----- > From: "bunty" <bunty123_4@rediffmail.com> >To: <kernelnewbies@nl.linux.org>; <mohanlal@samsung.com>; ><omanakuttan@tataelxsi.co.in> >Sent: Monday, April 26, 2004 8:24 PM >Subject: query related to /proc and read_write.c file > > >hello, > 1) how kernel write to /proc entry? while studying kernel source i found >that there is no open/read/write/close file functions. >what i found is that sprintf function that writes to /proc entry. can anyone >please explain it? > > 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. >i found few questions asked on linux-kernel as well as kernelnewbies but >there is no one able to answer it? >i am using kernel 2.4.24. >regards, >parag. > > >-- >Kernelnewbies: Help each other learn about the Linux kernel. >Archive: http://mail.nl.linux.org/kernelnewbies/ >FAQ: http://kernelnewbies.org/faq/ >