From cca57a53e33f77c01378141be449db3a365393dc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:28:03 +0200 Subject: Merging upstream version 32+20240327. Signed-off-by: Daniel Baumann --- man/modprobe.d.5.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'man') diff --git a/man/modprobe.d.5.xml b/man/modprobe.d.5.xml index 2bf6537..cc90da6 100644 --- a/man/modprobe.d.5.xml +++ b/man/modprobe.d.5.xml @@ -212,6 +212,30 @@ + + weakdep modulename modules... + + + + The weakdep command allows you to specify weak module + dependencies. Those are similar to pre softdep, with the + difference that userspace doesn't attempt to load that + dependency before the specified module. Instead the kernel + may request one or multiple of them during module probe, + depending on the hardware it's binding to. The purpose of + weak module is to allow a driver to specify that a certain + dependency may be needed, so it should be present in the + filesystem (e.g. in initramfs) when that module is probed. + + + Example: Assume "weakdep c a b". A program creating an + initramfs knows it should add a, b, and c to the filesystem + since a and b may be required/desired at runtime. When c is + loaded and is being probed, it may issue calls to + request_module() causing a or b to also be loaded. + + + COMPATIBILITY -- cgit v1.2.3