From: Olaf Dietsche <olaf+list.linux-kernel@olafdietsche.de>
To: linux lover <linux_lover2004@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to read file in kernel module?
Date: Mon, 07 Feb 2005 15:29:52 +0100 [thread overview]
Message-ID: <87ekfsl9y7.fsf@goat.bogus.local> (raw)
In-Reply-To: 20050207061718.47940.qmail@web52203.mail.yahoo.com
linux lover <linux_lover2004@yahoo.com> writes:
> Now what i want is to use same bufproc_read &
> bufproc_write functions defined in /proc file
> handling kernel module to be used in another kernel
> module to read that /proc/file in kernel module.The
> second kernel module only used to read /proc file in
> kernel. I am not understanding how can i open that
> /proc/file in second kenrel module to read in kernel?
Look at kernel_read() in fs/exec.c and fs/binfmt_*.c
Regards, Olaf.
next prev parent reply other threads:[~2005-02-07 14:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-07 6:17 How to read file in kernel module? linux lover
2005-02-07 6:38 ` Arjan van de Ven
2005-02-07 10:13 ` Marcel Holtmann
2005-02-07 13:00 ` Michelle Konzack
2005-02-07 16:52 ` Valdis.Kletnieks
2005-02-07 14:29 ` Olaf Dietsche [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-10 13:30 linux lover
2005-01-10 16:15 ` Fao, Sean
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=87ekfsl9y7.fsf@goat.bogus.local \
--to=olaf+list.linux-kernel@olafdietsche.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux_lover2004@yahoo.com \
/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 NNTP newsgroup(s).