lkml.org 
[lkml]   [2004]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] add class_device to miscdevice
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.066 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site