/* called every couple of seconds during event activity; 'true' if config has changed */
static bool builtin_hwdb_validate(void) {
- return hwdb_validate(hwdb);
+ if (hwdb_validate(hwdb)) {
+ log_debug("hwdb needs reloading.");
+ return true;
+ }
+
+ return false;
}
const UdevBuiltin udev_builtin_hwdb = {
if (!ctx)
return -ENOMEM;
- log_debug("Load module index");
+ log_debug("Loading kernel module index.");
kmod_set_log_fn(ctx, udev_kmod_log, NULL);
kmod_load_resources(ctx);
return 0;
/* called on udev shutdown and reload request */
static void builtin_kmod_exit(void) {
- log_debug("Unload module index");
+ log_debug("Unload kernel module index.");
ctx = kmod_unref(ctx);
}
/* called every couple of seconds during event activity; 'true' if config has changed */
static bool builtin_kmod_validate(void) {
- log_debug("Validate module index");
if (!ctx)
return false;
- return (kmod_validate_resources(ctx) != KMOD_RESOURCES_OK);
+
+ if (kmod_validate_resources(ctx) != KMOD_RESOURCES_OK) {
+ log_debug("Kernel module index needs reloading.");
+ return true;
+ }
+
+ return false;
}
const UdevBuiltin udev_builtin_kmod = {
}
static bool builtin_net_setup_link_validate(void) {
- log_debug("Check if link configuration needs reloading.");
if (!ctx)
return false;
- return link_config_should_reload(ctx);
+ if (link_config_should_reload(ctx)) {
+ log_debug("Link configuration context needs reloading.");
+ return true;
+ }
+
+ return false;
}
const UdevBuiltin udev_builtin_net_setup_link = {