From owner-freebsd-current Sun May 21 5:53:20 2000 Delivered-To: freebsd-current@freebsd.org Received: from overcee.netplex.com.au (peter1.yahoo.com [208.48.107.4]) by hub.freebsd.org (Postfix) with ESMTP id C6DAF37B5BE for ; Sun, 21 May 2000 05:53:08 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 3F48B1CE1; Sun, 21 May 2000 05:53:08 -0700 (PDT) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Doug Rabson Cc: Mark Murray , current@FreeBSD.ORG Subject: Re: Major device numbers and mem device redesign In-Reply-To: Message from Doug Rabson of "Sun, 21 May 2000 12:31:41 BST." Date: Sun, 21 May 2000 05:53:08 -0700 From: Peter Wemm Message-Id: <20000521125308.3F48B1CE1@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Rabson wrote: > On Sun, 21 May 2000, Mark Murray wrote: > > > Hi > > > > 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). > > > > Also - Peter said something about the "mem" device needing > > to only contain the /dev/mem and /mem/kmem devices, and > > /dev/(random|urandom|null|zero) needing to move to MI areas. I have done > > this, as KLD's. Who wants to review? > > I'll take a look. > > -- > Doug Rabson Mail: dfr@nlsystems.com > Nonlinear Systems Ltd. Phone: +44 20 8442 9037 > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > > Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message