Udev + /dev/rtf
Hi,
I have a question about udev and /dev/rtf* device nodes. They are needed to interact with the module rtai_fifos.ko (part of RTAI, a Linux realtime extension).
But I'm not sure if rtai_fifos.ko support sysfs or not.
/sys/module/rtai_fifos/ gets created when I load the module but there is not much in it.
The output of 'udevinfo -a -p /sys/module/rtai_fifos/' is just:
looking at class device '/sys/module/rtai_fifos':
SUBSYSTEM="unknown"
SYSFS{refcnt}="0"When this module gets loaded, it would be ideal if the device nodes /dev/rtf[0-9] could be created.
crw-rw-rw- 1 root root 150, 0 2006-03-03 14:05 /dev/rtf0 crw-rw-rw- 1 root root 150, 1 2006-03-03 14:05 /dev/rtf1
...
crw-rw-rw- 1 root root 150, 9 2006-03-03 14:05 /dev/rtf9
If I create the device nodes manually with mknod they get erased when the box is rebooted.
Does anobody know if it is possible to make these device nodes persistent with udev somehow?
(or even better, created when the module is loaded and deleted when the module is unloaded)
If it is possible, how should a /etc/udev/rules.d rules file look like?
I tried with:
DRIVER="rtai_fifos", NAME="rtf%n"
But nothing happened..
Regards, Albert
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 1 line · Albert Veli
But I'm not sure if rtai_fifos.ko support sysfs or not.
If no device at all is being created, then obviously not. Ask the RTAI maintainers to fix the driver.
Quoted 2 lines
/sys/module/rtai_fifos/gets created when I load the module but there is not much in it.
This is not the right path, the RTAI files will have to appear in /sys/class/.
Signature · 2 lines
ciao, Marco