From owner-freebsd-hackers Mon Jul 28 19:21:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA25523 for hackers-outgoing; Mon, 28 Jul 1997 19:21:00 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA25516 for ; Mon, 28 Jul 1997 19:20:54 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id LAA09491; Tue, 29 Jul 1997 11:50:41 +0930 (CST) From: Michael Smith Message-Id: <199707290220.LAA09491@genesis.atrad.adelaide.edu.au> Subject: Re: Location of copyin() and copyout().. In-Reply-To: <199707282150.OAA01303@agni.nuko.com> from Vinay Bannai at "Jul 28, 97 02:50:17 pm" To: vinay@agni.nuko.com (Vinay Bannai) Date: Tue, 29 Jul 1997 11:50:40 +0930 (CST) Cc: freebsd-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-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Vinay Bannai stands accused of saying: > > I was wondering if it is considered a good idea to move data back and > forth between the user and kernel space using copyin() and copyout() > without calling uiomove(). I can't seem to find the location of these > functions/macros. Can someone point me where they are defined?? It is generally considered _extremely_ bad to use copyin/copyout, as it precludes your functions from being called from within kernel space. FWIW, this is what eventually stumped me when it came to getting Linux WABI running on FreeBSD. > Vinay Bannai E-mail: vinay@agni.nuko.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 [[