UDEV\_MONITOR\_NEW\_FROM\_NETLINK(3) udev\_monitor\_new\_from\_netlink UDEV\_MONITOR\_NEW\_FROM\_NETLINK(3)

.SH "NAME" udev\_monitor\_new\_from\_netlink, udev\_monitor\_ref, udev\_monitor\_unref - Create, acquire and release a udev monitor object

.SH "SYNOPSIS"

```
#include <libudev.h>
```

.HP 1224u **struct udev\_monitor \*udev\_monitor\_new\_from\_netlink(struct udev \*udev, const char \*name);**

.HP 912u **struct udev\_monitor \*udev\_monitor\_ref(struct udev\_monitor \*udev\_monitor);**

.HP 960u **struct udev\_monitor \*udev\_monitor\_unref(struct udev\_monitor \*udev\_monitor);**

.SH "RETURN VALUE"

.PP On success, **udev\_monitor\_new\_from\_netlink()** returns a pointer to the allocated udev monitor. On failure, **NULL** is returned. **udev\_monitor\_ref()** returns the argument that it was passed, unmodified. **udev\_monitor\_unref()** always returns **NULL**.

.SH "HISTORY"

.PP **udev\_monitor\_new\_from\_netlink()**, **udev\_monitor\_ref()**, and **udev\_monitor\_unref()** were added in version 221.

.SH "SEE ALSO"

.PP [**udev\_new**(3)](/man/os/systemd/udev_new.3), [**udev\_device\_new\_from\_syspath**(3)](/man/os/systemd/udev_device_new_from_syspath.3), [**udev\_enumerate\_new**(3)](/man/os/systemd/udev_enumerate_new.3), [**udev\_monitor\_filter\_update**(3)](/man/os/systemd/udev_monitor_filter_update.3), [**udev\_monitor\_receive\_device**(3)](/man/os/systemd/udev_monitor_receive_device.3), [**udev\_list\_entry**(3)](/man/os/systemd/udev_list_entry.3), [**systemd**(1)](/man/os/systemd/systemd.1)

systemd 262.2

---

Document: udev_monitor_new_from_netlink(3) from systemd 262.2-r1 (Chainguard OS)
Source: https://github.com/systemd/systemd
