From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 17 11:35:52 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 EF06C1065675 for ; Mon, 17 Nov 2008 11:35:52 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.224]) by mx1.freebsd.org (Postfix) with ESMTP id A11298FC13 for ; Mon, 17 Nov 2008 11:35:52 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by qb-out-0506.google.com with SMTP id f30so2163739qba.35 for ; Mon, 17 Nov 2008 03:35:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Mbwa3Mv1fOxvq6VoU4W+YqpNrmp4jo7/uRehm09JZDc=; b=PdtK2Zj+OPS3Ub7adaqz1bSews+eLZ1V0T3SCFd864tCK9KkWtneTP74SBYHpRf7MO +0skI37XBYJUUqLmUq5i9LqRMn2WVXgKXkKHNlZ4XP/GtpoWs9PyHSSrbfXjWaiiqKSZ WQENly6LzhPfQfMZ1eYMNKFZ1Mlr2Nt0mTEdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=Upc342zy9n6hQweeVckoGNMH6KGu348zm8ODZrDrROIvxk0V75sHaHvnI94H8MCw22 4Bj/7g8Jjh3B6YGpfc66t5ATjlcthWADCPicOicXjyPtSwcZZ4bbbWp/6sUemLh09ttO sl1rIliZnqxvxhOEMIvyTMaMZgleZmVCSxBwQ= Received: by 10.103.170.6 with SMTP id x6mr1233318muo.13.1226921751150; Mon, 17 Nov 2008 03:35:51 -0800 (PST) Received: from localhost (BAD9344.bad.pppool.de [77.131.147.68]) by mx.google.com with ESMTPS id j10sm4303332muh.1.2008.11.17.03.35.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 17 Nov 2008 03:35:49 -0800 (PST) Date: Mon, 17 Nov 2008 12:35:22 +0100 From: Alexej Sokolov To: FreeBSD Hackers Message-ID: <20081117113522.GA2732@debian.samsung.router> Mail-Followup-To: FreeBSD Hackers References: <671bb5fc0811151927j6dcb5155oeffbf4cc95cbccb6@mail.gmail.com> <20081116100923.GU81783@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20081116100923.GU81783@hoeg.nl> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: KLD loading, liking X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexej Sokolov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 11:35:53 -0000 On Sun, Nov 16, 2008 at 11:09:00AM +0100, Ed Schouten wrote: > * Alexej Sokolov wrote: > > 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. > > MODULE_DEPEND is used to say: this kernel module also depends on another > module (i.e. the USB printer module depends on the USB code). Tools like > kldload can then automatically load the missing modules. Not only that. The use of the MODULE_DEPEND macro allows one module to access the variables of modules on which it depends. But man page of MODULE_DEPEND doesn't tell anything about this functionality. Hence I am looking for any good documentation of KLD loader. But I didn't find anything. May be looking in the source code is the best solution. > > -- > Ed Schouten > WWW: http://80386.nl/ -- Alexej Sokolov