summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-01-13 13:17:10 +0100
committerKay Sievers <kay.sievers@suse.de>2006-01-13 13:17:10 +0100
commitd548032795b3c02aad606537a35ff63d954f1613 (patch)
tree2681108fec568ebfe3c9d1bddfee584ec7b5dd40 /udev.h
parentafe9f2fb5fe97281e2e84c12e1451a8e9bab6edb (diff)
better log test and comments
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/udev.h b/udev.h
index c060b8d6ff..6dc0c9e354 100644
--- a/udev.h
+++ b/udev.h
@@ -55,7 +55,7 @@ struct udev_rules;
struct sysfs_device {
struct list_head node; /* for device cache */
char devpath[PATH_SIZE];
- char subsystem[NAME_SIZE]; /* $class/$bus/"drivers */
+ char subsystem[NAME_SIZE]; /* $class/$bus/"drivers" */
char kernel_name[NAME_SIZE]; /* device instance name */
char kernel_number[NAME_SIZE];
char driver[NAME_SIZE]; /* device driver name */
@@ -63,7 +63,7 @@ struct sysfs_device {
struct udevice {
/* device event */
- struct sysfs_device *dev;
+ struct sysfs_device *dev; /* points to dev_local by default */
struct sysfs_device dev_local;
char action[NAME_SIZE];
@@ -114,9 +114,11 @@ extern struct sysfs_device *sysfs_device_get(const char *devpath);
extern struct sysfs_device *sysfs_device_get_parent(struct sysfs_device *dev);
extern char *sysfs_attr_get_value(const char *devpath, const char *attr_name);
-/* udev_add.c / udev_remove.c */
-extern int udev_add_device(struct udevice *udev);
+/* udev_add.c */
extern int udev_make_node(struct udevice *udev, const char *file, dev_t devt, mode_t mode, uid_t uid, gid_t gid);
+extern int udev_add_device(struct udevice *udev);
+
+/* udev_remove.c */
extern int udev_remove_device(struct udevice *udev);
/* udev_db.c */