Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Create simple udev rule to list module char driver in /dev

38 views
Skip to first unread message

carlos

unread,
Jul 5, 2012, 5:26:02 PM7/5/12
to
Hello,
I'm trying to list my module "test" with udev rules under /dev tree.

I did create a rule as:

~# cat /etc/udev/rules.d/10-local.rules
ACTION=="add", SUBSYSTEM=="module", ENV{DEVPATH}== "/module/test", NAME="test_udev"

based on what i get from udevadm monitor --env when I load my module

~# modprobe test
KERNEL[1333848375.382728] add /module/test (module)
UDEV_LOG=3
ACTION=add
DEVPATH=/module/test
SUBSYSTEM=module
SEQNUM=669

UDEV [1333848375.389382] add /module/test (module)
UDEV_LOG=3
ACTION=add
DEVPATH=/module/test
SUBSYSTEM=module
SEQNUM=669

I wonder if that shouldn't be enough for my driver to be listed under /dev
PD: The module doesn't create a device node by itself.

Thanks.
0 new messages