From: ratheesh kannoth <ratheesh.ksz@gmail.com>
To: linux-modules@vger.kernel.org, linux-c-programming@vger.kernel.org
Subject: proc entry getting created in wrong directory?
Date: Fri, 30 Sep 2011 23:43:38 +0530 [thread overview]
Message-ID: <CAGZFCEFAUqjoD7cPNSzY10cksBkqB20_r0aP5Hw3o1SNSPTKwg@mail.gmail.com> (raw)
<linux 2.6.38 kernel>
struct file *filp = filp_open("/proc/net/stat", O_RDONLY, 0);
proc_dir_entry = PDE(filp->f_path.dentry->d_inode);
proc_entry = create_proc_entry( "fortune", 0644, proc_dir_entry );
"fortune" is getting created in /proc dir, why so ?
-ratheesh
reply other threads:[~2011-09-30 18:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGZFCEFAUqjoD7cPNSzY10cksBkqB20_r0aP5Hw3o1SNSPTKwg@mail.gmail.com \
--to=ratheesh.ksz@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=linux-modules@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).