Re: [patch] add class_device to miscdevice
From: Greg KH
Date: Wed Dec 15 2004 - 13:52:33 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/