From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 12:16:07 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10BA61065673 for ; Fri, 7 Jan 2011 12:16:07 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id C43718FC20 for ; Fri, 7 Jan 2011 12:16:06 +0000 (UTC) Received: from [192.168.134.2] (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 92BA913DF5F for ; Fri, 7 Jan 2011 15:16:04 +0300 (MSK) Date: Fri, 7 Jan 2011 15:15:59 +0300 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1241746160.20110107151559@serebryakov.spb.ru> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: Building "third-party" modules for kernel with debug options? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 12:16:07 -0000 Hello, Freebsd-hackers. I've found, that "struct bio" is depend on state of "DIAGNOSTIC" flag ("options DIAGNOSTIC" in kernel config). But when I build third-party GEOM (or any other) module with using of , there is no access to these options. So, module, built from ports, can fail on user's kernel, even if it built with proper kernel sources in "/usr/src/sys". Is here any solution for this problem? P.S. NB: GEOM module is only example, question is about modules & kernel options in general, so I put this message on Hackers list. --=20 // Black Lion AKA Lev Serebryakov