UDEV_MONITOR_FILTER_UPDATE(3)
π NAME π
okay bestie, this is the UDEV_MONITOR_FILTER_ADD_MATCH_SUBSYSTEM_DEVTYPE(3) page, and itβs giving βfilter management eraβ β¨. The whole crew is udev_monitor_filter_update, udev_monitor_filter_remove, udev_monitor_filter_add_match_subsystem_devtype, and udev_monitor_filter_add_match_tag β and the official vibe is Modify filters π
.
β¨ SYNOPSIS β¨
First you grab the header, exactly like this:
#include <libudev.h>
Then these signatures, no cap:
int udev_monitor_filter_update(struct udev_monitor *udev_monitor);
int udev_monitor_filter_remove(struct udev_monitor *udev_monitor);
int
udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *udev_monitor,
const char *subsystem,
const char *devtype);
int udev_monitor_filter_add_match_tag(struct udev_monitor *udev_monitor,
const char *tag);
π«Ά RETURN VALUE π«Ά
On success, udev_monitor_filter_update(), udev_monitor_filter_remove(), udev_monitor_filter_add_match_subsystem_devtype(), and udev_monitor_filter_add_match_tag() return an integer greater than, or equal to, 0. Thatβs the βwe ateβ result π.
On failure, a negative error code is returned β yes, the flop signal π.
π¦ HISTORY π¦
udev_monitor_filter_update(), udev_monitor_filter_remove(), udev_monitor_filter_add_match_subsystem_devtype(), and udev_monitor_filter_add_match_tag() were added in version 221. iconic from way back π.
π SEE ALSO π
These besties right here:
udev_new(3)udev_device_new_from_syspath(3)udev_enumerate_new(3)udev_monitor_new_from_netlink(3)udev_monitor_receive_device(3)udev_list_entry(3)systemd(1)
Source/version: systemd 261.3 π. The footer doesnβt show a date, so Iβm not inventing one β no fake timestamp energy here, bestie π .
π¦ where this page comes from
- ubuntu stonking: libudev-dev 261.3-0ubuntu3 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms