Hi, This is done via: kobject_create_and_add(), which eventually calls sysfs_create_file(), or sysfs_create_group(). Look in Documentation/kobject.txt regards, Rami Rosen http://ramirose.wix.com/ramirosen On Fri, Dec 28, 2012 at 1:22 PM, Rahul Bedarkar <rpal143@xxxxxxxxx> wrote: > Hi, > > When driver provides sys fs interface for user space programs, how we > specify name of file to be created ? > > > Thanks, > Rahul B. > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@xxxxxxxxxxxxxxxxx > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies