[systemd-devel] modprobe in service file
Kay Sievers
kay.sievers at vrfy.org
Wed Nov 9 03:12:46 PST 2011
2011/11/9 Lennart Poettering <lennart at poettering.net>:
> On Wed, 09.11.11 08:13, "Jóhann B. Guðmundsson" (johannbg at gmail.com) wrote:
>> Do you have any links to documentation on how to autoload kmods on use?
>
> Well, this is a kernel feature. The kernel module developers have to add
> the right directives to their .c sources to make the module
> autoloadable. And there are a number of different hooks for the
> auto-loading. i.e. since about always PCI vendor/product IDs could be
> used to do module auto loading, but nowadays DMI info works too, or
> device nodes can be precreated and information about it included in the
> kmod, and so on. So, making modules autoloadable is something for the
> kernel hackers to care for.
The module in question here, ip_queue, is supposed to be loaded when
the netlink_firewall protocol is requested:
MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_FIREWALL);
# modinfo ip_queue | grep alias
alias: net-pf-16-proto-3
Not sure if that works as expected. Someone needs to try that.
Kay
More information about the systemd-devel
mailing list