From owner-freebsd-arch Tue Feb 27 22:36:56 2001 Delivered-To: freebsd-arch@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 5300837B71A for ; Tue, 27 Feb 2001 22:36:54 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f1S6apd02466; Tue, 27 Feb 2001 23:36:51 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200102280636.f1S6apd02466@harmony.village.org> To: Kostas Magoutis Subject: Re: Logical device instances Cc: freebsd-arch@FreeBSD.ORG In-reply-to: Your message of "Wed, 28 Feb 2001 01:34:42 EST." <200102280634.f1S6Ygq03513@wally.eecs.harvard.edu> References: <200102280634.f1S6Ygq03513@wally.eecs.harvard.edu> <200102280048.f1S0m9n09106@wally.eecs.harvard.edu> <200102280555.f1S5twd14711@harmony.village.org> Date: Tue, 27 Feb 2001 23:36:51 -0700 From: Warner Losh Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200102280634.f1S6Ygq03513@wally.eecs.harvard.edu> Kostas Magoutis writes: : The minor number is still pretty static, isn't it? I can multiplex a : single physical device but I can't create dynamic instances of it, : e.g., the files corresponding to the vnode/devnode of the device. You can create all the dev nodes that you want. It is a simple mknod(). Also, you can encode the physical minor such that each one can have multiple logical minors. There's 24 bits of minor number to play with. In current with DEVFS you can instruct your driver to create new device nodes and they will appear in the tree. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message