From owner-freebsd-current@FreeBSD.ORG Wed Mar 29 08:05:58 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FE9516A422 for ; Wed, 29 Mar 2006 08:05:58 +0000 (UTC) (envelope-from stanley.jobson@gmx.ch) Received: from sigma.informatik.hu-berlin.de (sigma.informatik.hu-berlin.de [141.20.20.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89C2C43D4C for ; Wed, 29 Mar 2006 08:05:57 +0000 (GMT) (envelope-from stanley.jobson@gmx.ch) Received: from tyrael.linnet (p54BCE7ED.dip.t-dialin.net [84.188.231.237]) (authenticated bits=0) by sigma.informatik.hu-berlin.de (8.13.4+Sun/8.13.4/INF-2.0-MA-SOLARIS-2.10) with ESMTP id k2T85VIF007509; Wed, 29 Mar 2006 10:05:52 +0200 (CEST) Date: Wed, 29 Mar 2006 10:03:46 +0200 From: stanley jobson To: John-Mark Gurney Message-Id: <20060329100346.95aa1e6a.stanley.jobson@gmx.ch> In-Reply-To: <20060329061135.GP7001@funkthat.com> References: <24143.1143531014@www098.gmx.net> <9531.1143531289@www098.gmx.net> <20060329061135.GP7001@funkthat.com> X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.8.12; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Status: No (sigma) X-Spam-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_05, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on rabe Cc: current@freebsd.org Subject: Re: KLD technical docs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 08:05:58 -0000 > > for my master thesis i am looking for technical docs about > > dynamic linking esp. about the kernel dynamic linker facility. > > > > i found some good docs about dynamic linking in general but > > nothing about KLD/LKM. > > > > are there any technical docs on KLD? I read the short chapter > > in the arch handbook but thats not much info. > > > > i am interested in docs answering the following questions: > > - how does the dynamic loading and linking work for KLDs/LKMs? > > - does this anything has to do with libbfd, libdl or rtld? > > - how are dependencies handled? > > > > technical info to LKM and dynamic linking facility of the other > > BSDs would be also interesting :) > > The best technical doc is src/sys/kern/kern_linker.c... :) That > handles all the magic of SYSINIT's, sysctl's and the other magic of > kernel modules... sure ;-) ... but kinda low level ... so am i right that there is no higher level doc available ? thx regards, stan