summaryrefslogtreecommitdiff
path: root/udev/lib/libudev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-04-22 03:50:11 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-04-22 03:50:11 +0200
commite14bdd88e9796ec3c70966dd1899add6667431f5 (patch)
tree729c921be3a7bedad393a754fbf99b42ab301f4b /udev/lib/libudev.h
parentf907449eee3f58fafafee0658e80578b1dbb2722 (diff)
libudev: monitor - add client socket filter for subsystem value
Messages send back by the udev daemon to the netlink socket are multiplexed by the kernel and delivered to multiple clients. The clients can upload a socket filter to let the kernel drop messages not belonging to a certain subsystem. This prevent needless wakeups and message processing for users who are only interested in a subset of available events. Recent kernels allow untrusted users to listen to the netlink messages. The messages send by the udev daemon are versioned, to prevent any custom software reading them without libudev. The message wire format may change with any udev version update.
Diffstat (limited to 'udev/lib/libudev.h')
-rw-r--r--udev/lib/libudev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev/lib/libudev.h b/udev/lib/libudev.h
index e0aa571e26..4094b3a822 100644
--- a/udev/lib/libudev.h
+++ b/udev/lib/libudev.h
@@ -84,6 +84,7 @@ extern void udev_monitor_unref(struct udev_monitor *udev_monitor);
extern struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor);
extern int udev_monitor_get_fd(struct udev_monitor *udev_monitor);
extern struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor);
+extern int udev_monitor_filter_add_match_subsystem(struct udev_monitor *udev_monitor, const char *subsystem);
/* sys enumeration */
struct udev_enumerate;