1 year ago

#257350

test-img

Duy Trần Phạm

Embedded Linux: Adding device file to existing device sysfs class

I am using Linux kernel release 5.4. I have one kernel built-in driver, which creates a sysfs class: /sys/night_owl/tick1/* using class_create() and device_create_file() function. I am developing another kernel loadable module, which reuses the /sys/class/night_owl class, this means I will have something like this /sys/class/night_owl/tick2/*. Does Linux kernel support this feature or are there any keywords for me to search on this?

embedded-linux

sysfs

0 Answers

Your Answer

Accepted video resources