Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA23518; Tue, 19 Dec 95 23:40:47 EST
Received: from halloran-eldar.lcs.mit.edu by MIT.EDU with SMTP
	id AA00296; Tue, 19 Dec 95 23:40:48 EST
Received: from freefall.FreeBSD.ORG by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM)
	id AA19262; Tue, 19 Dec 1995 23:40:48 -0500
Received: from localhost (daemon@localhost)
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA27456
          Tue, 19 Dec 1995 20:03:48 -0800 (PST)
Received: (from root@localhost)
          by freefall.freebsd.org (8.7.3/8.7.3) id UAA27381
          for hackers-outgoing; Tue, 19 Dec 1995 20:02:02 -0800 (PST)
Received: from staff.cs.su.OZ.AU (staff.cs.su.OZ.AU [129.78.8.1])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA27367
          for <hackers@freebsd.org>; Tue, 19 Dec 1995 20:01:56 -0800 (PST)
Received: from un.seqeb.gov.au by staff.cs.su.OZ.AU (mail from daemon for
	hackers@freebsd.org)
	with MHSnet; Wed, 20 Dec 1995 15:01:51 +1100
Received: from svcc.seqeb.gov.au by un.seqeb.gov.au; (5.65/GJW251095a)
	id AA05162; Wed, 20 Dec 1995 13:27:45 +1000
Received: by svcc.seqeb.gov.au (5.57/Ultrix/4.2A and a bit)
	id AA25073; Wed, 20 Dec 95 13:27:44 +1000
Date: Wed, 20 Dec 1995 13:27:43 +1000 (EST)
From: pat collins <pc012@svcc.seqeb.gov.au>
Subject: Help with lkm's please
To: hackers@freebsd.org
Message-Id: <Pine.3.89.9512201331.A24863-0100000@svcc.seqeb.gov.au>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-hackers@freebsd.org
Precedence: bulk

I am writing an lkm device driver for a digital IO board. I have worked 
out how to move bytes from the user space to the kernel space but not 
vice-versa. Can anyone give me any clues on how I move data from the 
kernel space to the user space. Do I use the uiomove() function, if so how.

Thanks

-----------------------------------------------------------------------------
Patrick Collins - Communications Design Officer    email : pc012@seqeb.gov.au
South East Queensland Electricity Corporation      phone : +61 7 3407 5237
2 Bowen Bridge Rd, Fortitude Valley, 4006          fax   : +61 7 3407 5059
Queensland, AUSTRALIA (Best State, Best Country)   Viva el Cristo Rey !
-----------------------------------------------------------------------------


