From: cranium2003 <cranium2003@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: which file functions can be used on /proc file?
Date: Mon, 7 Mar 2005 05:22:34 -0800 (PST) [thread overview]
Message-ID: <20050307132234.65405.qmail@web41415.mail.yahoo.com> (raw)
hello,
i found that in struct proc_dir_entry struct
file_operations *proc_fops; is defined. and struct
file_operations has defined read, write,
poll,llseek,ioctl,flush,release,lock etc functions. so
can all these functions be used on any /proc entry in
usermode as well as in kenrel mode?
Also can following functions be used on my own
created /proc file kernel module and when to use them
as i have alredy struct file_opereations read and
write routine that read/write to/from /proc file.
typedef int (read_proc_t)(char *page, char **start,
off_t off,
int count, int *eof, void
*data);
typedef int (write_proc_t)(struct file *file, const
char *buffer,
unsigned long count, void
*data);
typedef int (get_info_t)(char *, char **, off_t, int);
regards,
cranium.
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
next reply other threads:[~2005-03-07 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-07 13:22 cranium2003 [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-05 6:52 cranium2003
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=20050307132234.65405.qmail@web41415.mail.yahoo.com \
--to=cranium2003@yahoo.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®