From: Greg KH <greg@kroah.com>
To: Peter <peter_mj2002@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sysfs programming
Date: Sat, 20 Dec 2008 19:25:21 -0800 [thread overview]
Message-ID: <20081221032521.GA2529@kroah.com> (raw)
In-Reply-To: <188539.35426.qm@web35306.mail.mud.yahoo.com>
On Sat, Dec 20, 2008 at 12:13:23AM -0800, Peter wrote:
> Hi ,
> I am writing a project for my university and i am planning on using
> sysfs for my kernel module to communicate with user space , ive read
> some articles and i know how sysfs works, its just i dont know how the
> code should be written . Could you please send me a sample code about
> how to create an attribute file at /sys/module/(some kernel module)/
> please ?
What is wrong with the examples in the kernel tree itself? Are they not
sufficient in some way?
thanks,
greg k-h
prev parent reply other threads:[~2008-12-21 4:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-20 8:13 sysfs programming Peter
2008-12-21 3:25 ` Greg KH [this message]
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=20081221032521.GA2529@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peter_mj2002@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