KLD loading, liking

Alexej Sokolov bsd.quest at googlemail.com
Sat Nov 15 19:27:49 PST 2008


Hello,
i am looking for some infos (may be papers) about how KLD linker works.
After kompiling the KLD contain two important sections:
% readelf -S mymod.ko | grep set
[ 7] set_sysinit_set   PROGBITS        00000560 000560 000004 00   A  0   0
4
[ 8] set_modmetadata_s PROGBITS        00000564 000564 000008 00   A  0   0
4
.....

sysinit_set -contain a structure with a pointer to function which will be
called by loading of KLD

modmetadata_set - what kind of information is there and which functions of
linking/loading use it ?

What exact does the macro MODULE_DEPEND ? The man page is to short, and I
guess it tell no all things that the macro does.

Thanks


More information about the freebsd-hackers mailing list