How to work with sysfs for a tty driver?
From: Casper Yang (casper_yang_at_moxa.com.tw)
Date: 28 Feb 2005 00:08:31 -0800
I'm writing tty driver for PCI Multiple-serial board. I use "mknod" to
create device node before, but now it will disappear at next boot
under sysfs. I want to know what is the right procedure to create
device node under /sys (class/xxx, bus/xxx...) and /dev.
I found several internet document but still can not understand how to
work with /sys. Ex: Should I need to register a "driver"? Shoule I
need to register a "device"? Should I need to write some rule for
Can somebody tell me where to find some document or sample code?