summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-private.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-private.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-private.h')
-rw-r--r--udev/lib/libudev-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h
index 1e47d51080..178004c485 100644
--- a/udev/lib/libudev-private.h
+++ b/udev/lib/libudev-private.h
@@ -173,4 +173,5 @@ extern int udev_util_replace_whitespace(const char *str, char *to, size_t len);
extern int udev_util_replace_chars(char *str, const char *white);
extern int udev_util_encode_string(const char *str, char *str_enc, size_t len);
extern void util_set_fd_cloexec(int fd);
+extern unsigned int util_crc32(const unsigned char *buf, size_t len);
#endif