diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-13 14:43:24 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:27:34 -0700 |
commit | 7efa217db0db946e68e6274e2b9cbe0a973ec47a (patch) | |
tree | 80c697681846807293352b05ee2e5b9e9ef7af79 /udev_remove.c | |
parent | d4a32aa2e4804de9189574213749616dda57faa7 (diff) |
[PATCH] add NAME{ignore_remove} attribute
Some broken ide drivers are generating high event traffic, with
add/remove events. With this attribute, it can be specified,
that the node is always available. It may be used in conjunction
with the new DRIVER= match to catch specific kernel device drivers.
Diffstat (limited to 'udev_remove.c')
-rw-r--r-- | udev_remove.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/udev_remove.c b/udev_remove.c index 32cd785984..8887125dd8 100644 --- a/udev_remove.c +++ b/udev_remove.c @@ -185,6 +185,11 @@ int udev_remove_device(struct udevice *udev) dbg("'%s' not found in database, falling back on default name", udev->name); } + if (udev->ignore_remove) { + dbg("remove event for '%s' requested to be ignored by rule", udev->name); + return 0; + } + dbg("remove name='%s'", udev->name); udev_db_delete_device(udev); |