Re: problem creating files in /proc

2003-06-26 Thread David Hollister
On Thu, 2003-06-26 at 21:21, tirumal b wrote: > hello, > > can u tell me how can i change this to kernel code, > will i need to modify the kernel code and recompile it > .please let me know. > > Thank you I'm afraid that's really a non-trivial task. The basic steps would require you to includ

Re: problem creating files in /proc

2003-06-26 Thread tirumal b
hello, can u tell me how can i change this to kernel code, will i need to modify the kernel code and recompile it .please let me know. Thank you On Thu, 2003-06-26 at 20:45, [EMAIL PROTECTED] wrote: > tirumal b <[EMAIL PROTECTED]> said: > > > hello, > > > > i have tried to create files in

Re: problem creating files in /proc

2003-06-26 Thread David Hollister
On Thu, 2003-06-26 at 20:45, [EMAIL PROTECTED] wrote: > tirumal b <[EMAIL PROTECTED]> said: > > > hello, > > > > i have tried to create files in /proc but i am not > > able to do so. This is the code i have written and it > > generates some errors. > > > > /proc isn't a 'real' file system. It'

Re: problem creating files in /proc

2003-06-26 Thread rickf
tirumal b <[EMAIL PROTECTED]> said: > hello, > > i have tried to create files in /proc but i am not > able to do so. This is the code i have written and it > generates some errors. > /proc isn't a 'real' file system. It's a virtual representation of your machine/os environment and kernel, and

Re: problem creating files in /proc

2003-06-26 Thread tirumal b
hello, i have tried to create files in /proc but i am not able to do so. This is the code i have written and it generates some errors. #include #include #include main() { const char* name="CPU"; mode_t mode=444; struct proc_dir_entry *l; l=create_proc_entry(name,mode,NULL); } gcc -c example.c I

Re: problem creating files in /proc

2003-06-26 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 25 Jun 2003 14:03:09 -0700 (PDT), tirumal b wrote: >I tried to create certain files in /proc using the > proc_fs.h interface but i get the following errors. I > have also included my program too. Could any one tell > me what is the error.

problem creating files in /proc

2003-06-25 Thread tirumal b
hello I tried to create certain files in /proc using the proc_fs.h interface but i get the following errors. I have also included my program too. Could any one tell me what is the error. Thank you gcc -c example.c In file included from example.c:2: /usr/include/linux/proc_fs.h:47: parse erro