Re: [RFC][PATCH v2 08/11] sysfs: introduce new interfacesysfs_get_kobject

From: Greg KH
Date: Tue May 18 2010 - 16:14:33 EST

On Wed, May 19, 2010 at 01:48:43AM +0000, Lin Ming wrote:
> Need this interface in the later sysfs pmu lookup.
> struct kobject *sysfs_get_kobject(struct file *file);
> Return the relative kobject of the sysfs file.

Ick, no. Why would you ever have the file, yet not have the kobject
already? Something is really wrong if this is needed. Or strange. Or
maybe both :)


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
Please read the FAQ at