From owner-freebsd-current@FreeBSD.ORG Wed Mar 29 06:11:37 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 4B72E16A400 for ; Wed, 29 Mar 2006 06:11:37 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCDA643D49 for ; Wed, 29 Mar 2006 06:11:36 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (z6h2f15b0ix4tn03@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.4/8.13.3) with ESMTP id k2T6BaGB057472; Tue, 28 Mar 2006 22:11:36 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.4/8.13.3/Submit) id k2T6BZuj057471; Tue, 28 Mar 2006 22:11:35 -0800 (PST) (envelope-from jmg) Date: Tue, 28 Mar 2006 22:11:35 -0800 From: John-Mark Gurney To: Stanley Jobson Message-ID: <20060329061135.GP7001@funkthat.com> Mail-Followup-To: Stanley Jobson , current@freebsd.org References: <24143.1143531014@www098.gmx.net> <9531.1143531289@www098.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9531.1143531289@www098.gmx.net> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: current@freebsd.org Subject: Re: KLD technical docs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney 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 06:11:37 -0000 Stanley Jobson wrote this message on Tue, Mar 28, 2006 at 09:34 +0200: > 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... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."