From owner-freebsd-stable@FreeBSD.ORG Mon Oct 17 10:51:59 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 516AB1065673 for ; Mon, 17 Oct 2011 10:51:59 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 0B4818FC20 for ; Mon, 17 Oct 2011 10:51:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 39D005CA12 for ; Mon, 17 Oct 2011 13:35:04 +0300 (EEST) X-Virus-Scanned: amavisd-new at bulinfo.net Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uVKFRsnAEVPg for ; Mon, 17 Oct 2011 13:35:04 +0300 (EEST) Received: from [192.168.2.187] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 08BCC5CA11 for ; Mon, 17 Oct 2011 13:35:04 +0300 (EEST) Message-ID: <4E9C04D8.1070400@bulinfo.net> Date: Mon, 17 Oct 2011 13:35:04 +0300 From: Krassimir Slavchev User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.23) Gecko/20110929 Thunderbird/3.1.15 MIME-Version: 1.0 To: FreeBSD X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: FreeBSD 8 kernel module dependencies? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 10:51:59 -0000 Hello list, I have a kernel module for an usb device which have to be loaded before geom_eli. This scenario works on FreeBSD 7.x using MODULE_DEPEND: g_eli.c: MODULE_DEPEND(g_eli, mymodule, 1, 1, 1); mymodule.c: MODULE_DEPEND(mymodule, usb, 1, 1, 1); MODULE_VERSION(mymodule, 1); Unfortunately I can not achieve this under 8.x. The geom_eli is loaded before the usb loading is finished. Adding MODULE_DEPEND(g_eli, usb, 1, 1, 1); in geom_eli does not help too. Is there something I miss? How to trace the module loading order? Thanks in advance