Messages in this thread | | | Date | Tue, 18 May 2010 13:08:23 -0700 | From | Greg KH <> | Subject | Re: [RFC][PATCH v2 08/11] sysfs: introduce new interface sysfs_get_kobject |
| |
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 :)
thanks,
greg k-h
| |