From owner-freebsd-current Sun May 21 11:26:26 2000 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id AEE4337B754 for ; Sun, 21 May 2000 11:26:22 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id UAA13843; Sun, 21 May 2000 20:24:52 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Mark Murray Cc: Peter Wemm , Doug Rabson , current@FreeBSD.ORG Subject: Re: Major device numbers and mem device redesign In-reply-to: Your message of "Sun, 21 May 2000 17:15:52 +0200." <200005211515.RAA16737@grimreaper.grondar.za> Date: Sun, 21 May 2000 20:24:52 +0200 Message-ID: <13841.958933492@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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