From: Greg KH <greg@kroah.com>
To: Brice Goglin <Brice.Goglin@ens-lyon.org>
Cc: Aubrey <aubreylee@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: How to add a device file to sysfs?
Date: Mon, 13 Nov 2006 09:07:50 -0800 [thread overview]
Message-ID: <20061113170750.GB14925@kroah.com> (raw)
In-Reply-To: <45584CE2.7090104@ens-lyon.org>
On Mon, Nov 13, 2006 at 11:45:54AM +0100, Brice Goglin wrote:
> Greg KH wrote:
> > On Tue, Oct 31, 2006 at 01:30:36PM +0800, Aubrey wrote:
> >
> >> I've read the doc under linux-2.6.x/Documentation, I can add it to
> >> some other directory, but not found a way to add it to my own
> >> directory.
> >>
> >
> > After misc_register() has been successfully called, the variable "class"
> > will be set in the miscdevice structure. Use that pointer to call
> > class_device_create_file() to create your new file in this directory.
> >
>
> How does it work in -mm where miscdevice does not contain a "class"
> anymore, but only pointers to some "device"?
Then use device_create_file() instead :)
Good luck,
greg k-h
next prev parent reply other threads:[~2006-11-13 17:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-31 5:30 How to add a device file to sysfs? Aubrey
2006-11-03 4:52 ` Greg KH
2006-11-13 10:45 ` Brice Goglin
2006-11-13 17:07 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-01 7:51 Aubrey
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=20061113170750.GB14925@kroah.com \
--to=greg@kroah.com \
--cc=Brice.Goglin@ens-lyon.org \
--cc=aubreylee@gmail.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