From: Greg KH <greg@kroah.com>
To: Robert Love <rml@novell.com>
Cc: ttb@tentacle.dhs.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] add class_device to miscdevice
Date: Wed, 15 Dec 2004 10:48:50 -0800 [thread overview]
Message-ID: <20041215184850.GA9639@kroah.com> (raw)
In-Reply-To: <1100710140.5009.6.camel@betsy.boston.ximian.com>
On Wed, Nov 17, 2004 at 11:48:59AM -0500, Robert Love wrote:
> Greg, et al.
>
> Currently misc_register() throws away the return from
> class_simple_device_add(). This makes it impossible to get to the
> class_device of the directories in /sys/class/misc and, for example,
> thus impossible to add attributes to those directories.
>
> Attached patch adds a class_device structure to the miscdevice structure
> and assigns to it the value returned from class_simple_device_add() in
> misc_register(), thus caching the value and allowing us to f.e. later
> call class_device_create_file().
>
> We need this for inotify, but I can see plenty of other misc. devices
> wanting this and consider it missing but required functionality.
Applied, will show up in the next -mm release.
thanks,
greg k-h
prev parent reply other threads:[~2004-12-15 18:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 16:48 [patch] add class_device to miscdevice Robert Love
2004-12-15 18:48 ` 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=20041215184850.GA9639@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rml@novell.com \
--cc=ttb@tentacle.dhs.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