Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2008 04:26:48 +0059
From:      "Alexej Sokolov" <bsd.quest@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   KLD loading, liking
Message-ID:  <671bb5fc0811151927j6dcb5155oeffbf4cc95cbccb6@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?671bb5fc0811151927j6dcb5155oeffbf4cc95cbccb6>