From owner-freebsd-current Mon Oct 13 15:53:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA00713 for current-outgoing; Mon, 13 Oct 1997 15:53:16 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA00673 for ; Mon, 13 Oct 1997 15:53:01 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA03333 for freebsd-current@FreeBSD.ORG; Tue, 14 Oct 1997 00:52:59 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id XAA02016; Mon, 13 Oct 1997 23:08:19 +0200 (MET DST) Message-ID: <19971013230818.ZB55478@uriah.heep.sax.de> Date: Mon, 13 Oct 1997 23:08:18 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-current@FreeBSD.ORG (FreeBSD-current users) Subject: Re: lockmgr panic References: <19971013084158.HG40991@uriah.heep.sax.de> <26001.876741642@critter.freebsd.dk> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <26001.876741642@critter.freebsd.dk>; from Poul-Henning Kamp on Oct 13, 1997 13:20:42 +0200 Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Poul-Henning Kamp wrote: > I hacked this little "genuine ram disk driver" up a couple of days ago, > if should do everything you would want to have done if this is for release > building: Well, i think this requires quite a number of changes in the release Makefile... so i'm a little reluctant to bring it in before 2.2.5 ships. But i get the point. > #ifndef RD0_SIZE > #define RD0_SIZE (80*2*18*512) > #endif That's ugly. My suggestion: provide two minor numbers per pseudo-device. The first is the actual rd driver, the second is the control device. For the control device, define an ioctl command that gets down the desired size, and allocates a (optionally pageable) buffer for it. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)