From: "Fao, Sean" <sean.fao@capitalgenomix.com>
To: linux lover <linux_lover2004@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to read file in kernel module?
Date: Mon, 10 Jan 2005 11:15:21 -0500 [thread overview]
Message-ID: <41E2AA19.70603@capitalgenomix.com> (raw)
In-Reply-To: <20050110133046.61383.qmail@web52210.mail.yahoo.com>
linux lover wrote:
> I want to read file in kernel module. can
>anybody help me by giving code for that?
>Also whats suitable way to do that in kernel /proc or
>shared memory? what i want is to read and write a user
>file frequently.
>regards,
>
Linux Lover,
After reading a number of posts from you in the past couple of months,
it's become rather obvious that you're taking a brute force approach to
Linux kernel development rather than starting from the beginning and
working your way up. Furthermore, some of the questions you ask
indicate that you're approaching kernel programming the same way you
would program in user space.
Others (myself included) have suggested a couple of books to get you
started quickly. It will take some work on your part, however, if you
ever want to be a proficient kernel developer. Examples are good to
back up theory, but are a horrible way to learn any kind of programming.
Please take us up on our advise to do some reading. I can promiss you
that the energy you spend on reading will be time well spent if Linux
kernel programming is for you. If you have questions about portions you
read in the book, somebody here might be willing to give you a hand.
Please do not take this as an insult. You sound like you have a lot of
interest in Kernel development. If that's the case, I'd like to see you
turn into a good developer, not just another "so-so" programmer.
Good luck,
--
Sean
next prev parent reply other threads:[~2005-01-10 16:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-10 13:30 How to read file in kernel module? linux lover
2005-01-10 16:15 ` Fao, Sean [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-07 6:17 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
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=41E2AA19.70603@capitalgenomix.com \
--to=sean.fao@capitalgenomix.com \
--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