Linux Sysfs Question:
Download Questions PDF

Which one of the following function is used to create a new attribute?
a) sysfs_create_file()
b) sysfs_attribute
c) both (a) and (b)
d) none of the mentioned

Answer:

a) sysfs_create_file()

Download Linux Sysfs Interview Questions And Answers PDF

Previous QuestionNext Question
Which one of the following function is used to add the kobject to sysfs?
a) kobject_add()
b) kobject_register()
c) kobject_init()
d) all of the mentioned
Sysfs attribute should export ____ value per file.
a) one
b) two
c) three
d) four