From owner-freebsd-bugs Fri Mar 22 09:34:49 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA17370 for bugs-outgoing; Fri, 22 Mar 1996 09:34:49 -0800 (PST) Received: from precipice.shockwave.com (precipice.shockwave.com [171.69.108.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA17350 Fri, 22 Mar 1996 09:34:45 -0800 (PST) Received: from localhost.shockwave.com (localhost.shockwave.com [127.0.0.1]) by precipice.shockwave.com (8.7.4/8.7.3) with SMTP id JAA06312; Fri, 22 Mar 1996 09:34:36 -0800 (PST) Message-Id: <199603221734.JAA06312@precipice.shockwave.com> To: Bruce Evans cc: bde@freebsd.org, bugs@freebsd.org, hackers@freebsd.org, jmz@freebsd.org Subject: Re: modloaded block/char device drivers In-reply-to: Your message of "Fri, 22 Mar 1996 23:58:50 +1100." <199603221258.XAA05969@godzilla.zeta.org.au> Date: Fri, 22 Mar 1996 09:34:36 -0800 From: Paul Traina Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk From: Bruce Evans Subject: Re: modloaded block/char device drivers qcam should also worry about conflicts with lpt* :-). Someone might even want to use the same lpt port at different times for printing, parallel port TCP/IP, and qcam. The lpt driver and the plip driver are in the same file so that they can be selected between using an ioctl. There's gotta be a better way to do this. Yep. Right now, they actually /do/ stay out of each others way, as long as you don't try to open both devices at the same time. It seems to me, we need something like a top half and a bottom half of the kdc, the top half stays with the driver (i.e. belongs to qcam or lpt) and the bottom half stays with the hardware. Then opening either device would lock out the other device.