From owner-freebsd-hackers@FreeBSD.ORG Thu May 29 06:24:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6709F37B401 for ; Thu, 29 May 2003 06:24:32 -0700 (PDT) Received: from fump.kawo2.rwth-aachen.de (fump.kawo2.RWTH-Aachen.DE [134.130.181.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53BB843F93 for ; Thu, 29 May 2003 06:24:31 -0700 (PDT) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: from fump.kawo2.rwth-aachen.de (localhost.kawo2.rwth-aachen.de [127.0.0.1])h4TDOTf8067570 for ; Thu, 29 May 2003 15:24:29 +0200 (CEST) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.12.9/8.12.9/Submit) id h4TDOS8Z067569 for freebsd-hackers@FreeBSD.org; Thu, 29 May 2003 15:24:28 +0200 (CEST) Date: Thu, 29 May 2003 15:24:28 +0200 From: Alexander Langer To: freebsd-hackers@FreeBSD.org Message-ID: <20030529132428.GA66652@fump.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Fingerprint: 7EC1 5B98 4554 2A63 9079 2B2F 9A94 CD6F 7F14 EFA4 X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. User-Agent: Mutt/1.5.3i Subject: loader tunables for modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2003 13:24:32 -0000 Hi! How would one give flags to kernel modules? I.e. a kernel module I wrote starts a kernel thread. It should be controlable what kernel thread it starts depending on a sysctl. Of course the sysctl isn't available before the module is loaded. So is there a way to pass a kernel module options to the load-handler, as it is the case for the linux modprobe? For statically drivers in the kernel this can be done by a r/o loader tunable, but I really want to have a module. Thanks for any pointers Alex