Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2003 11:02:09 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        freebsd-chat@freebsd.org, Andrew Boothman <andrew@cream.org>, Damien Tougas <damien@tougas.net>
Subject:   Re: A question about kernel modules
Message-ID:  <XFMail.20030310110209.jhb@FreeBSD.org>
In-Reply-To: <3E6991F4.F8A10E3A@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 08-Mar-2003 Terry Lambert wrote:
> Another issue having to do with structure size is that if the
> module you are trying to load was not compiled with the same
> options as the kernel you are trying to load it into, even if
> all the version stuff matches, including the proposed new
> versioning data, the structure sizes expected by the module
> and by the kernel can be different.  A good example of this is
> something like "WITNESS" or "INVARIANTS", etc..

WITNESS and INVARIANTS don't actually do this.  I sometimes
wish they did so we could cut down on the size of mutexes for
normal kernels.  In fact, very few options have this effect.
One is MUTEX_PROFILING and this effect is intentional in that
case.  GENERIC isn't going to ship with that option on. :)
Another is DEBUG_LOCKS which is also only used specifically by
people who know what they are doing. :)  Those were the only
two I could find that affected the size of any structures in
/usr/src/sys/sys/*

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030310110209.jhb>