summaryrefslogtreecommitdiff
path: root/udev/udev-builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/udev-builtin.c')
-rw-r--r--udev/udev-builtin.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/udev/udev-builtin.c b/udev/udev-builtin.c
index 36821702c1..9f21727699 100644
--- a/udev/udev-builtin.c
+++ b/udev/udev-builtin.c
@@ -33,6 +33,26 @@ static const struct udev_builtin *builtins[] = {
[UDEV_BUILTIN_KMOD] = &udev_builtin_kmod,
};
+int udev_builtin_load(struct udev *udev)
+{
+ unsigned int i;
+
+ for (i = 0; i < ARRAY_SIZE(builtins); i++)
+ if (builtins[i]->load)
+ builtins[i]->load(udev);
+ return 0;
+}
+
+int udev_builtin_unload(struct udev *udev)
+{
+ unsigned int i;
+
+ for (i = 0; i < ARRAY_SIZE(builtins); i++)
+ if (builtins[i]->unload)
+ builtins[i]->unload(udev);
+ return 0;
+}
+
int udev_builtin_list(struct udev *udev)
{
unsigned int i;