Re: [PATCH 1/3] sysfs: introduce a sysfs_create_file_uevent new API

2012-07-28 Thread Bryan Wu
On Fri, Jul 27, 2012 at 11:52 PM, Greg KH wrote: > On Fri, Jul 27, 2012 at 12:02:41PM +0800, Bryan Wu wrote: >> Send a uevent notification whenever a new sysfs file is created to allow >> userspace processes such as udev to modify permissions on the new files. > > This makes no sense, why not just

Re: [PATCH 1/3] sysfs: introduce a sysfs_create_file_uevent new API

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 12:02:41PM +0800, Bryan Wu wrote: > Send a uevent notification whenever a new sysfs file is created to allow > userspace processes such as udev to modify permissions on the new files. This makes no sense, why not just call kobject_uevent after creating the file when needed?