From owner-freebsd-current Sun May 21 7:43:34 2000 Delivered-To: freebsd-current@freebsd.org Received: from grimreaper.grondar.za (grimreaper.grondar.za [196.7.18.138]) by hub.freebsd.org (Postfix) with ESMTP id 3291437B744 for ; Sun, 21 May 2000 07:43:26 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grimreaper.grondar.za (localhost [127.0.0.1]) by grimreaper.grondar.za (8.9.3/8.9.3) with ESMTP id QAA16615; Sun, 21 May 2000 16:41:48 +0200 (SAST) (envelope-from mark@grimreaper.grondar.za) Message-Id: <200005211441.QAA16615@grimreaper.grondar.za> To: Peter Wemm Cc: Doug Rabson , Mark Murray , current@FreeBSD.ORG Subject: Re: Major device numbers and mem device redesign References: <20000521125308.3F48B1CE1@overcee.netplex.com.au> In-Reply-To: <20000521125308.3F48B1CE1@overcee.netplex.com.au> ; from Peter Wemm "Sun, 21 May 2000 05:53:08 MST." Date: Sun, 21 May 2000 16:41:48 +0200 From: Mark Murray Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > 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. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message