Waldorf
Waldorf

Reputation: 903

Using sysfs as replacement for /dev on embedded device

Until now the books devoted to embedded Linux describe the use of /dev nodes to communicate with the device from userspace. I see however more and more devices which communicate with the driver via sysfs. I could not find any clear explanations how to do this. Does this work in the same was via read / write fops ?

Any tutorials/explanations ? I own Linux device drivers 3rd edition, which only describes the /dev interface for interacting with the driver and /sysfs to display expose some info.

Upvotes: 1

Views: 293

Answers (1)

Waldorf
Waldorf

Reputation: 903

I overlooked it: sysfs.txt in the kernel docs explains quite a lot.

Upvotes: 3

Related Questions