Date: Thu, 9 Dec 2004 11:42:01 +0800 (CST) From: cm c <beatlelittle@yahoo.com.cn> To: Dan Nelson <dnelson@allantgroup.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to write driver with load time parameter support? Message-ID: <20041209034201.11670.qmail@web15307.mail.bjs.yahoo.com> In-Reply-To: <20041208035709.GF2629@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I'm still not very clear the way to do this. Does this method do set the parameters at load time or after load ? Cause Linux can insmod abc.o param=123; param is set to 123 when abc is linked to the kernel. Could u please give me a simple example? thanks very much! CcM, a newbie. Dan Nelson <dnelson@allantgroup.com> wrote: In the last episode (Dec 08), cm c said: > I've done most of my driver, but I need some load time parameters > to be passed to this driver. Under Linux MODULE_PARM() can do > this job, how can I do this under FBSD? I think kernel tunables (set in /boot/loader.conf at boot time or via /bin/kenv at runtime, readable in-kernel via TUNABLE_* macros) are your best bet here. -- Dan Nelson dnelson@allantgroup.com _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" --------------------------------- Do You Yahoo!? 注册世界一流品质的雅虎免费电邮
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041209034201.11670.qmail>