mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
Previously, watch handle is saved in the udev databse. But in most cases, the handle saved in the database is not updated. Especially, when udevd is restarted, the inotify watch is restarted, but the database is not updated. Moreover, it is not necessary to save watch handle in the database, as the handle is only take a effect during udevd is running, and the value is meaningless when udevd is restarted. So, this makes the opposite map from device ID to watch handle is saved in /run/udev/watch as a symbolic link, and the handle not saved in the database anymore. Fixes #18525.
9 lines
232 B
C
9 lines
232 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#pragma once
|
|
|
|
#include "sd-device.h"
|
|
|
|
int udev_watch_restore(int inotify_fd);
|
|
int udev_watch_begin(int inotify_fd, sd_device *dev);
|
|
int udev_watch_end(int inotify_fd, sd_device *dev);
|