Date: Thu, 29 May 2003 16:58:35 +0200 From: Lara & Harti Brandt <brandt@fokus.fraunhofer.de> To: Alexander Langer <alex@big.endian.de> Cc: freebsd-hackers@freebsd.org Subject: Re: loader tunables for modules Message-ID: <3ED6201B.7010804@fokus.fhg.de> References: <20030529132428.GA66652@fump.kawo2.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Langer wrote: > 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. It turns out that kenv is just handy for this. I use it to pass debugging information and configuration info to the ATM drivers. And you can set kenv entries from the loader and the shell. harti
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ED6201B.7010804>