From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 16 03:27:49 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 549E7106567C for ; Sun, 16 Nov 2008 03:27:49 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from po-out-1718.google.com (po-out-1718.google.com [72.14.252.156]) by mx1.freebsd.org (Postfix) with ESMTP id 2759C8FC13 for ; Sun, 16 Nov 2008 03:27:48 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by po-out-1718.google.com with SMTP id y22so3342886pof.3 for ; Sat, 15 Nov 2008 19:27:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=mXE6B/+each0O2VUZq+kfQ+jORzysHXGBp9XhwIClOI=; b=fwCvN///1KIpMNcRZR0nduHhZNnsf2LgUY+RqDIIVu69NIdap0E+IGSlZWazg9mOS4 Ugsu0xHCH4ShOobo0LpsPHk8AeiZiUNobjKSQuMnH15v6dR2BfLbpnxDIJ6Gvvw9KEWF LOu7JbTLfZSY0OjKzhqz/CqsYWvdJu8YpIzik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=tw/igQtPy0UPHPc6QL5Thzqfq5luzJtrXLbl8oezDIkbHmwS0uXi6ry/m9SouCZT73 cSeGrRbeu+yZaxYkPa1paVs+71FsRYbUHZoexpxPKoScfYo/gxrREkaOLpakEFQSC1M+ cuZ5bQAG9bx7yR3XdLnu77sjGMoMobPoE9bnI= Received: by 10.114.102.20 with SMTP id z20mr1631059wab.53.1226806068564; Sat, 15 Nov 2008 19:27:48 -0800 (PST) Received: by 10.114.201.14 with HTTP; Sat, 15 Nov 2008 19:27:48 -0800 (PST) Message-ID: <671bb5fc0811151927j6dcb5155oeffbf4cc95cbccb6@mail.gmail.com> Date: Sun, 16 Nov 2008 04:26:48 +0059 From: "Alexej Sokolov" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: KLD loading, liking X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2008 03:27:49 -0000 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