chiark / gitweb /
[PATCH] allow unlimitied count of symlinks
[elogind.git] / udev.h
diff --git a/udev.h b/udev.h
index 17ff4031c90dde49b00031d1529156598fb450d9..811439faf2a5ee37e6e9f3debd2cbe6a6509f550 100644 (file)
--- a/udev.h
+++ b/udev.h
@@ -4,6 +4,7 @@
  * Userspace devfs
  *
  * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
+ * Copyright (C) 2003-2005 Kay Sievers <kay.sievers@vrfy.org>
  *
  *     This program is free software; you can redistribute it and/or modify it
  *     under the terms of the GNU General Public License as published by the
 #include <sys/types.h>
 #include <sys/param.h>
 #include "libsysfs/sysfs/libsysfs.h"
+#include "list.h"
 
 #define ALARM_TIMEOUT                  120
 #define COMMENT_CHARACTER              '#'
 
+#define LINE_SIZE                      512
 #define NAME_SIZE                      256
 #define USER_SIZE                      32
 
@@ -38,8 +41,6 @@
 #define SUBSYSTEM_SIZE                 32
 #define SEQNUM_SIZE                    32
 
-#define LINE_SIZE                      512
-
 #define DEVD_DIR                       "/etc/dev.d"
 #define DEVD_SUFFIX                    ".dev"
 
@@ -61,14 +62,14 @@ struct udevice {
        char subsystem[SUBSYSTEM_SIZE];
 
        char name[NAME_SIZE];
-       char symlink[NAME_SIZE];
+       char devname[NAME_SIZE];
+       struct list_head symlink_list;
        char owner[USER_SIZE];
        char group[USER_SIZE];
        mode_t mode;
        char type;
        dev_t devt;
 
-       char devname[NAME_SIZE];
        char tmp_node[NAME_SIZE];
        int partitions;
        int ignore_remove;