summaryrefslogtreecommitdiff
path: root/udev_config.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-01-09 21:18:00 +0100
committerKay Sievers <kay.sievers@suse.de>2006-01-09 21:18:00 +0100
commit1aa1e24848903d11780db1ade355be73ad61a937 (patch)
treefb15c937a1a6e9f0197c905cc7af6ee5df8b108c /udev_config.c
parent47fbf3c58260e3fed1078061f8d45e01b0e120f0 (diff)
replace libsysfs
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_config.c')
-rw-r--r--udev_config.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/udev_config.c b/udev_config.c
index c1af7c12ca..a7e19fe864 100644
--- a/udev_config.c
+++ b/udev_config.c
@@ -28,15 +28,9 @@
#include <ctype.h>
#include <syslog.h>
-#include "libsysfs/sysfs/libsysfs.h"
-#include "udev_libc_wrapper.h"
#include "udev.h"
-#include "udev_utils.h"
-#include "udev_version.h"
-#include "logging.h"
/* global variables */
-char sysfs_path[PATH_SIZE];
char udev_root[PATH_SIZE];
char udev_config_filename[PATH_SIZE];
char udev_rules_filename[PATH_SIZE];
@@ -168,7 +162,7 @@ static int parse_config_file(void)
return retval;
}
-void udev_init_config(void)
+void udev_config_init(void)
{
const char *env;
@@ -177,7 +171,6 @@ void udev_init_config(void)
strcpy(udev_rules_filename, UDEV_RULES_FILE);
udev_log_priority = LOG_ERR;
udev_run = 1;
- sysfs_get_mnt_path(sysfs_path, sizeof(sysfs_path));
/* disable RUN key execution */
env = getenv("UDEV_RUN");
@@ -202,7 +195,6 @@ void udev_init_config(void)
if (env)
udev_log_priority = log_priority(env);
- dbg("sysfs_path='%s'", sysfs_path);
dbg("UDEV_CONFIG_FILE='%s'", udev_config_filename);
dbg("udev_root='%s'", udev_root);
dbg("udev_rules='%s'", udev_rules_filename);