kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Problems with adding a sysfs file
@ 2017-04-17  8:17 Abhishek Bhardwaj
  2017-04-17 20:43 ` valdis.kletnieks at vt.edu
  0 siblings, 1 reply; 4+ messages in thread
From: Abhishek Bhardwaj @ 2017-04-17  8:17 UTC (permalink / raw)
  To: kernelnewbies

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 get called when I try to cat
or echo to the file. Is there any step I'm missing ?. I also see that
a lot of drivers still use sysfs_create_file which is racy according
to the link I posted.

-
AB

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-18  0:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-17  8:17 Problems with adding a sysfs file Abhishek Bhardwaj
2017-04-17 20:43 ` valdis.kletnieks at vt.edu
2017-04-17 21:04   ` Abhishek Bhardwaj
2017-04-18  0:05     ` Tobin C. Harding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).