From owner-freebsd-hackers Sat Jan 24 18:37:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA04009 for hackers-outgoing; Sat, 24 Jan 1998 18:37:10 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA03992 for ; Sat, 24 Jan 1998 18:37:06 -0800 (PST) (envelope-from tlambert@usr01.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id TAA22562; Sat, 24 Jan 1998 19:37:05 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp04.primenet.com, id smtpd022528; Sat Jan 24 19:36:55 1998 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id TAA25798; Sat, 24 Jan 1998 19:36:53 -0700 (MST) From: Terry Lambert Message-Id: <199801250236.TAA25798@usr01.primenet.com> Subject: Re: cloning drivers To: tom@sdf.com (Tom) Date: Sun, 25 Jan 1998 02:36:52 +0000 (GMT) Cc: tlambert@primenet.com, hackers@FreeBSD.ORG In-Reply-To: from "Tom" at Jan 24, 98 04:56:22 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > > I have a cloning pty driver and cloning bfs and tun and vnode > > drivers as well. > > Can it become more generic so that any driver can be cloned? No. You can only clone drivers for devices under a controller. The cloning process is implicitly hierarchical. Consider trying to clone sio devices without more serial ports or disk devices without more disks. It's non-sensical. Cloning tends to only apply to psuedo devices. Like PTY's, BPF, TUN, VN devices, etc.. Effectively, it's a minor number MUX, and little else. > It seems silly to me that I need to recompile the kernel to support an > additional (but identical to the first) ethernet card. Not identical. If it were identical, it'd be mapped to the same address space and IRQ. You wouldn't be able to detect it. 8-). > It seems to me that some of the PCI devices do this somewhat > automatically right now? IE. if you added a "device de0", it > automatically makes devices de0 to de(N-1) for N DEC ethernet cards? > Sort of. PCI devices have their own mapping space. I recommend the Mindshare book "CardBus Architecture". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.