Re: Problems with adding a sysfs file

2017-04-17 Thread Tobin C. Harding
On Mon, Apr 17, 2017 at 02:04:48PM -0700, Abhishek Bhardwaj wrote: > I used a pr_debug and printk KERN_INFO ,before my original email , to > verify they weren't being called. You will have more success on kernel mailing lists if you do not top post as you have done :) > On Apr 17, 2017 1:43 PM,

Re: Problems with adding a sysfs file

2017-04-17 Thread Abhishek Bhardwaj
I used a pr_debug and printk KERN_INFO ,before my original email , to verify they weren't being called. On Apr 17, 2017 1:43 PM, wrote: > On Mon, 17 Apr 2017 01:17:08 -0700, Abhishek Bhardwaj said: > > I followed this link to add a sysfs file > > http://kroah.com/log/blog/2013/06/26/how-to-creat

Re: Problems with adding a sysfs file

2017-04-17 Thread valdis . kletnieks
On Mon, 17 Apr 2017 01:17:08 -0700, Abhishek Bhardwaj said: > I followed this link to add a sysfs file > http://kroah.com/log/blog/2013/06/26/how-to-create-a-sysfs-file-correctly/ > . > > I set the driver.groups field and declared the attribute and attribute > groups required by the sysfs file. Whe

Problems with adding a sysfs file

2017-04-17 Thread Abhishek Bhardwaj
I followed this link to add a sysfs file http://kroah.com/log/blog/2013/06/26/how-to-create-a-sysfs-file-correctly/ . I set the driver.groups field and declared the attribute and attribute groups required by the sysfs file. When I boot my kernel I see the file but my store and show handlers don't