From owner-freebsd-current Sun May 21 10: 3: 4 2000 Delivered-To: freebsd-current@freebsd.org Received: from cypherpunks.ai (cypherpunks.ai [209.88.68.47]) by hub.freebsd.org (Postfix) with ESMTP id 3080A37B930 for ; Sun, 21 May 2000 10:03:00 -0700 (PDT) (envelope-from jeroen@vangelderen.org) Received: from vangelderen.org (grolsch.ai [209.88.68.214]) by cypherpunks.ai (Postfix) with ESMTP id E64F652; Sun, 21 May 2000 13:02:58 -0400 (AST) Message-ID: <392816CA.3A1E38E7@vangelderen.org> Date: Sun, 21 May 2000 13:03:06 -0400 From: "Jeroen C. van Gelderen" X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Mark Murray Cc: Peter Wemm , Doug Rabson , current@FreeBSD.ORG Subject: Re: Major device numbers and mem device redesign References: <20000521125308.3F48B1CE1@overcee.netplex.com.au> <200005211441.QAA16615@grimreaper.grondar.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Murray wrote: > > > > > I want to commit a new /dev/random RSN, so I'll be needing a major > > > > device; what is the procedure for getting one? I know how to steal one, > > > > but ISTR that this is not how it is done. > > > > > > Just edit sys/conf/majors and claim the next available number. > > > > You don't need one. You can use the same major/minor numbers. You can > > register multiple cdevsw's per major number with make_dev(); (do NOT > > use cdevsw_add() for this). > > How does this work for all the routines? When you register the > "new" minor number, can you be specifying new read/write/poll/ioctl/etc > routines? > > I ask, as my RNG is a kld, and I want it to be as separate as possible > without getting ridiculous. Have a look at http://jeroen.vangelderen.org/FreeBSD/misc_device . Cheers, Jeroen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message