Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2002 16:59:58 -0500
From:      "Louis A. Mamakos" <louie@TransSys.COM>
To:        Daniel Lang <langd-freebsd-hackers@leo.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: more kernel programming style questions 
Message-ID:  <200212132159.gBDLxw4E012114@whizzo.transsys.com>
In-Reply-To: Your message of "Fri, 13 Dec 2002 12:55:07 %2B0100." <20021213115507.GE84493@atrbg11.informatik.tu-muenchen.de> 
References:  <20021213115507.GE84493@atrbg11.informatik.tu-muenchen.de> 

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

I'm not holding this up as the best example of style, but take a
look at the Bt848 driver  in /sys/pci for one approach.  Some years
ago I contributed some patches that got integrated that turned
those offset references into a structure definition.  The structure
definition was done with some macros so that you can hide compile
byte-order dependencies..

louie


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




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