From: Brice Goglin <Brice.Goglin@ens-lyon.org>
To: Greg KH <greg@kroah.com>
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 11:45:54 +0100 [thread overview]
Message-ID: <45584CE2.7090104@ens-lyon.org> (raw)
In-Reply-To: <20061103045235.GA24467@kroah.com>
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"?
Thanks,
Brice
next prev parent reply other threads:[~2006-11-13 10:46 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 [this message]
2006-11-13 17:07 ` Greg KH
-- 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=45584CE2.7090104@ens-lyon.org \
--to=brice.goglin@ens-lyon.org \
--cc=aubreylee@gmail.com \
--cc=greg@kroah.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.