* how to create in proc
@ 2001-04-03 9:23 Srinivas Surabhi
2001-04-03 8:33 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Surabhi @ 2001-04-03 9:23 UTC (permalink / raw)
To: linux-kernel
hi all,
i am new comer into the world of linux.i want to create a
subdirectory in /proc directory. Already i know have to create
a file in the /proc filesystem.
So kindly help me, what are the system calls/fuction calls to be used
for the creation of sub-directory in /proc directory.
thank u
srinivas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to create in proc
2001-04-03 9:23 how to create in proc Srinivas Surabhi
@ 2001-04-03 8:33 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2001-04-03 8:33 UTC (permalink / raw)
To: Srinivas Surabhi; +Cc: Linux Kernel List
On Tue, 3 Apr 2001, Srinivas Surabhi wrote:
> So kindly help me, what are the system calls/fuction calls to be
> used for the creation of sub-directory in /proc directory.
eg. to create a new "foo" directory in /proc/net:
new_dir = proc_mkdir("foo", proc_net);
then use the resulting dir entry to create files in this new directory:
entry = create_proc_entry("bar", 0700, new_dir);
and use remove_proc_entry() on the file entry and on the directory entry
to clean things up.
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-03 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-03 9:23 how to create in proc Srinivas Surabhi
2001-04-03 8:33 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®