summaryrefslogtreecommitdiff
path: root/libudev/libudev.h
diff options
context:
space:
mode:
authorScott James Remnant <scott@ubuntu.com>2010-02-17 15:26:00 +0000
committerScott James Remnant <scott@ubuntu.com>2010-02-17 15:26:00 +0000
commita571c23e954cb88cdd5faa28593b19bd7c340130 (patch)
tree01df7fecf20e3d7a2c732978b486816d930d5ef4 /libudev/libudev.h
parent4ca91a04e8b727a079a973fdd9bc2b093e8315a5 (diff)
libudev: export udev_monitor_set_receive_buffer_size()
This function is useful for anything that's likely to be running alongside udevd during cold-plugging, and is using libudev to receive the events. It makes little sense for it to be private, or to require other software to relearn how to adjust the buffer size. Signed-off-by: Scott James Remnant <scott@ubuntu.com>
Diffstat (limited to 'libudev/libudev.h')
-rw-r--r--libudev/libudev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libudev/libudev.h b/libudev/libudev.h
index ad11059f2c..9576ad49ca 100644
--- a/libudev/libudev.h
+++ b/libudev/libudev.h
@@ -111,6 +111,7 @@ struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev, const char
struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path);
/* bind socket */
int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor);
+int udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size);
int udev_monitor_get_fd(struct udev_monitor *udev_monitor);
struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor);
/* in-kernel socket filters to select messages that get delivered to a listener */