* profs open hook
@ 2003-06-30 10:46 peter enderborg
0 siblings, 0 replies; only message in thread
From: peter enderborg @ 2003-06-30 10:46 UTC (permalink / raw)
To: linux-kernel
I have done this little patch for the procfs_example.c
diff procfs_example.c
kernels/linux-2.4.20/Documentation/DocBook/procfs_example.c
87,91d86
< static int open_qp(struct inode * inode, struct file * file)
< {
< printk("Open my node %p %p \n",inode,file);
< return -EINVAL;
< }
180c175
< foo_file->proc_fops->open=open_qp;
---
>
And when loading this module. The procfs gets broken. I get EINVAL for
open on
/proc/meminfo and all other procfs info. Why? Should procfs inodes don't
have full
filesematics? And it don't help to unload the module.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-30 10:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-30 10:46 profs open hook peter enderborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox