summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-04-12 22:08:05 +0200
committerKay Sievers <kay.sievers@suse.de>2006-04-12 22:08:05 +0200
commitff9a488d8c559a2ee40e522cdc68b750670711e4 (patch)
treebe773a20aff7ccbae7ef8cc9b6e2cab33d3e27ad /udev.h
parent00a074480e4ab15e61f13f8791015fa0befcadce (diff)
remove old symlinks before creating current ones
This will prevent incorrect symlinks when a filesystem label is changed and the event is triggered again from sysfs.
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev.h b/udev.h
index 615253a52f..94d1676c90 100644
--- a/udev.h
+++ b/udev.h
@@ -119,7 +119,8 @@ extern char *sysfs_attr_get_value(const char *devpath, const char *attr_name);
/* udev_node.c */
extern int udev_node_mknod(struct udevice *udev, const char *file, dev_t devt, mode_t mode, uid_t uid, gid_t gid);
-extern int udev_node_add(struct udevice *udev);
+extern int udev_node_add(struct udevice *udev, struct udevice *udev_old);
+extern void udev_node_remove_symlinks(struct udevice *udev);
extern int udev_node_remove(struct udevice *udev);
/* udev_db.c */