linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Create proc entry under /proc/sys/kernel
@ 2008-06-08  8:00 RuoMu Hu
  0 siblings, 0 replies; only message in thread
From: RuoMu Hu @ 2008-06-08  8:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-serial, linux-net

Hi!

Is it possible to create a proc entry under /proc/sys/kernel directly by 
create_proc_read_entry in the way shown below?

test_pde = create_proc_read_entry("/proc/sys/kernel/test", 0, NULL,
                                    test_read_proc, NULL);
if (test_pde == NULL) {
    printk(KERN_ERR "Failed to create the test proc file.\n");
    return -ENOMEM;
}

I'm using this in my kernel module but create_proc_read_entry always 
returns fail, while there's no problem creating proc entries directly 
under /proc.  The kernel source I'm building my kernel module against is 
2.6.25.4.

Any idea?


Thanks
Romu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-08  8:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-08  8:00 Create proc entry under /proc/sys/kernel RuoMu Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).