Query on udev: how to not create a device node by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am looking into how to integrate udev into an embedded linux system
that is currently using /sbin/hotplug and associated hotplug scripts.

Udev is meant to be used to handle stuff that the current hotplug
scripts do not do.

During testing, I discovered that udev will create device nodes (for
example, for block devices) in the /dev directory even when I did not
define any udev rules to do this.  Is this the default udev behaviour?
 My current /sbin/hotplug scripts already handle the device nodes and
I would like udev not to do this.

I have tried to stop this by using OPTIONS+="ignore_device" and this
seems to work.

But for some types of devices, I still want udev to take some action
(like run an external program) but not create device nodes.

I tried to get this behaviour by using RUN+="/usr/bin/my_program",
OPTIONS+="last_rule", but udev still appears to create the device
node.

Is it possible to stop udev from creating device nodes by default?

Regards,
Kam-Yung
-- 
Soh Kam Yung
my Google Reader Shared links:
(http://www.google.com/reader/shared/16851815156817689753)
my Google Reader Shared SFAS links:
(http://www.google.com/reader/shared/user/16851815156817689753/label/sfas)
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux