From owner-freebsd-questions Wed Jun 4 13:01:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA29571 for questions-outgoing; Wed, 4 Jun 1997 13:01:22 -0700 (PDT) Received: from tornado.cisco.com (tornado.cisco.com [171.69.104.22]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA29545 for ; Wed, 4 Jun 1997 13:01:10 -0700 (PDT) Received: from bmcgover-pc.cisco.com (bmcgover-pc.cisco.com [171.69.104.147]) by tornado.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id PAA19466 for ; Wed, 4 Jun 1997 15:54:51 -0400 (EDT) Received: from bmcgover-pc.cisco.com (localhost.cisco.com [127.0.0.1]) by bmcgover-pc.cisco.com (8.8.5/8.8.5) with ESMTP id QAA00610 for ; Wed, 4 Jun 1997 16:00:37 -0400 (EDT) Message-Id: <199706042000.QAA00610@bmcgover-pc.cisco.com> To: questions@freebsd.org Subject: How do I make large minor numbers? Date: Wed, 04 Jun 1997 16:00:36 -0400 From: Brian McGovern Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Sounds a bit redundant, but... :) I'm trying to create some minor numbers for a piece of hardware that could have potentially as many as 128 or 256 ports, with n number of them being in a machine (4 is a realistic number). Given that an average tty device needs call in, call out, initial state in, and initial state out, lock state in, and lock state out, I want to do something like this: lower 8 bits - port number 9th bit - Call In/Call out flag 10th bit - Initial state flag 11th bit - Lock state flag 12-15th bit - Board number I see that the minor function is supposed to return a signed integer, so this should be (?) possible? I also see devices in /dev with rather large minor numbers. However, when I try creating a node with mknod for something like: mknod cuacA01 c 48 257 it dies, saying that the major or minor number is too large (I tracked it, and its the minor number). Is there any way around this? Or am I going to be stuck with only 255 minor numbers (which is going to be a real pain!). -Brian