Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 May 2000 20:24:52 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Mark Murray <mark@grondar.za>
Cc:        Peter Wemm <peter@netplex.com.au>, Doug Rabson <dfr@nlsystems.com>, current@FreeBSD.ORG
Subject:   Re: Major device numbers and mem device redesign 
Message-ID:  <13841.958933492@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 21 May 2000 17:15:52 %2B0200." <200005211515.RAA16737@grimreaper.grondar.za> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200005211515.RAA16737@grimreaper.grondar.za>, Mark Murray writes:
>> > I ask, as my RNG is a kld, and I want it to be as separate as possible
>> > without getting ridiculous.
>> 
>> Yes.  You could just cut/paste the existing mem.c driver, and remove
>> everything but the random hooks.  In your init code register minors 3 and
>> 4, and that's all you have to worry about.
>
>Cool! So it means I can also remove the
>
>switch (minor(dev)) {
>
>	3:
>		/* Stuff */
>		break;
>	default:
>		return FOO;
>}
>
>and reduce that to
>
>/* Stuff */
>
>On the grounds that my routine will never see the other crap?
>If so, way cool!

yes, enjoy :-)

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


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




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