From owner-freebsd-stable Fri Feb 16 11:27:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from smtp.wanadoo.nl (smtp.wanadoo.nl [194.134.193.6]) by hub.freebsd.org (Postfix) with ESMTP id 8593237B491 for ; Fri, 16 Feb 2001 11:27:45 -0800 (PST) Received: from ams-gw.sohara.org (p1021.vcu.wanadoo.nl [194.134.203.2]) by smtp.wanadoo.nl (8.9.3/8.9.3) with SMTP id UAA11895; Fri, 16 Feb 2001 20:27:42 +0100 (MET) Date: Fri, 16 Feb 2001 20:27:37 +0100 From: "Steve O'Hara-Smith" To: Robert bobb Crosbie Cc: freebsd-stable@freebsd.org Subject: Re: More than 256 pty's Message-Id: <20010216202737.1807da64.steveo@eircom.net> In-Reply-To: <20010216172854.A67979@enigma.redbrick.dcu.ie> References: <20010216172854.A67979@enigma.redbrick.dcu.ie> X-Mailer: Sylpheed version 0.4.60 (GTK+ 1.2.8; FreeBSD 4.2-STABLE; i386) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 16 Feb 2001 17:28:54 +0000 Robert bobb Crosbie wrote: RC> RC> You can have more than 256 ptys; the problem is what to name them. You RC> can easily get 384 ptys by extending the current scheme slightly (using RC> /dev/tty[tuTU]*; /dev/ttyv* is syscons so we hit our limit with this RC> naming scheme). Edit /dev/MAKEDEV and /usr/src/lib/libutil/pty.c RC> It looks to me like you also have to hack around in kern/tty_pty.c, there are hard coded assumptions in there about 256 minor numbers being mapped. Also comments about doing something about it, the mapping is defined in there. Making it work above 256 doesn't look hard, agreeing on a naming convention might be harder :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message