From owner-freebsd-chat Mon Mar 10 8: 1:55 2003 Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B267A37B401 for ; Mon, 10 Mar 2003 08:01:54 -0800 (PST) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1594F43F75 for ; Mon, 10 Mar 2003 08:01:54 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 19601 invoked from network); 10 Mar 2003 16:01:57 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 Mar 2003 16:01:57 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h2AFwJhT065288; Mon, 10 Mar 2003 10:58:20 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3E6991F4.F8A10E3A@mindspring.com> Date: Mon, 10 Mar 2003 11:02:09 -0500 (EST) From: John Baldwin To: Terry Lambert Subject: Re: A question about kernel modules Cc: freebsd-chat@freebsd.org, Andrew Boothman , Damien Tougas Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 <>< 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