Messages in this thread |  | | Date | Sun, 24 Feb 2008 22:51:07 -0800 | | From | Greg KH <> | | | Subject | Re: [PATCH 1/3] add a private data field within kobj_attribute structure (final#2) |
On Mon, Feb 25, 2008 at 03:10:27PM +0900, Kohei KaiGai wrote:
> [PATCH 1/3] add a private data field within kobj_attribute structure.
>
> This patch add a private data field, declared as void *, within kobj_attribute
> structure. The _show() and _store() method in the sysfs attribute entries can
> refer this information to identify what entry is accessed.
> It makes easier to share a single method implementation with several similar
> entries, like ones to export the list of capabilities the running kernel
> supports.
>
> Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
> --
> Documentation/kobject.txt | 6 ++++++
That's good, but you didn't modify the sample/kobject/ file to use the
new void pointer, instead of the strcmp() call.
thanks,
greg k-h
|  |