Date: Sun, 25 Jan 1998 02:36:52 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: tom@sdf.com (Tom) Cc: tlambert@primenet.com, hackers@FreeBSD.ORG Subject: Re: cloning drivers Message-ID: <199801250236.TAA25798@usr01.primenet.com> In-Reply-To: <Pine.BSF.3.95q.980124165322.20454B-100000@misery.sdf.com> from "Tom" at Jan 24, 98 04:56:22 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801250236.TAA25798>