Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 1998 11:40:15 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Mike Smith <mike@smith.net.au>, Karl Pielorz <kpielorz@tdx.co.uk>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Device / Driver presentation advice needed...
Message-ID:  <19980814114015.K1921@freebie.lemis.com>
In-Reply-To: <199808131717.KAA00818@antipodes.cdrom.com>; from Mike Smith on Thu, Aug 13, 1998 at 10:17:47AM -0700
References:  <35D29E32.81A62F7D@tdx.co.uk> <199808131717.KAA00818@antipodes.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 13 August 1998 at 10:17:47 -0700, Mike Smith wrote:
>> Hi All,
>>
>> I'm now getting on quite well with the device driver I'm writing, but I'm stuck
>> as to how best it is to present the 'device' to the outside world...
>>
>> If I reserve 3 bits of the minor number to indicate the actual card in the
>> system, I can then use the remaining 5 bits to give different 'presentations' of
>> the device (Is this good practice?)
>
> It's one way to do it.  There is a lot more room in the minor though;
> 32 bits in fact.

24 bits.  The total 32 bit word includes 8 bits of major number.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

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?19980814114015.K1921>