From owner-freebsd-hackers Sun Dec 8 21:38:25 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA02824 for hackers-outgoing; Sun, 8 Dec 1996 21:38:25 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id VAA02795 for ; Sun, 8 Dec 1996 21:38:16 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id QAA07561; Mon, 9 Dec 1996 16:07:49 +1030 (CST) From: Michael Smith Message-Id: <199612090537.QAA07561@genesis.atrad.adelaide.edu.au> Subject: Re: Driver help In-Reply-To: <199612031744.LAA13076@jake.lodgenet.com> from "Eric L. Hernes" at "Dec 3, 96 11:44:34 am" To: erich@lodgenet.com (Eric L. Hernes) Date: Mon, 9 Dec 1996 16:07:48 +1030 (CST) Cc: msmith@atrad.adelaide.edu.au, tony@nlanr.net, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Eric L. Hernes stands accused of saying: > > > IMHO, using copyin/out in drivers is bogus in most cases. > > I agree, but people porting drivers from a sysV derrivative, may want > to have a driver that will compile and work on either machine. I've > used a set of macros tucked away in the ifdef section like: ... This implies that SysV doesn't provide the readv/writev interface, correct? > I've also done similar things with the dma kernel support functions. > Usually, the driver ends up looking more BSDish than SCOish, but > isn't that how God intended? ;-) *grins* Now, is this documented in the DDWG? > erich@lodgenet.com -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[