From owner-freebsd-arch Tue Feb 27 16:48:13 2001 Delivered-To: freebsd-arch@freebsd.org Received: from wally.eecs.harvard.edu (wally.eecs.harvard.edu [140.247.60.30]) by hub.freebsd.org (Postfix) with ESMTP id 3CBC537B71A for ; Tue, 27 Feb 2001 16:48:11 -0800 (PST) (envelope-from magoutis@eecs.harvard.edu) Received: (from magoutis@localhost) by wally.eecs.harvard.edu (8.10.0/8.10.0) id f1S0m9n09106; Tue, 27 Feb 2001 19:48:09 -0500 (EST) Date: Tue, 27 Feb 2001 19:48:09 -0500 (EST) Message-Id: <200102280048.f1S0m9n09106@wally.eecs.harvard.edu> From: Kostas Magoutis To: freebsd-arch@freebsd.org Subject: Logical device instances Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am writing a device driver for a user-level networking card. User level code interacts with it via open, close, mmap, and ioctl. A separate logical instance of the device needs to be created each time a process opens the device (as in when a file is created when a vnode is opened). The device driver needs to have a way to find out on what logical instance of the device a system call is performed. It seems to me that at present (with either specfs or devfs), the device driver has no way to find out on what opened instance of the device an operation is performed. Am I missing something or the present device driver interfaces just don't support such functionality? Thanks, Kostas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message