Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2005 11:06:19 -0400 (EDT)
From:      "Matthew N. Dodd" <mdodd@FreeBSD.ORG>
To:        Felix-KM <Felix-KM@yandex.ru>
Cc:        NKoch@demig.de, freebsd-hackers@FreeBSD.ORG
Subject:   RE: how to use the function copyout()
Message-ID:  <20050725110347.W21555@sasami.jurai.net>
In-Reply-To: <42E4F3AD.000001.28235@colgate.yandex.ru>
References:  <000101c5911b$62441260$4801a8c0@ws-ew-3.W2KDEMIG> <42E4F3AD.000001.28235@colgate.yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Jul 2005, Felix-KM wrote:
> In the Linux driver Ioctl is realized with the macroses _put_user 
> _get_user all over it. As I understand in FreeBSD their analogues are 
> functions described in store(9), copy(9) and fetch(9).

Linux doesn't provide any help for driver IOCTL routines, FreeBSD does.

Just declare your IOCTLs correctly and the kernel will perform any copy 
in/out as specified by the _IOW/_IOR/_IOWR macros.

-- 
10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050725110347.W21555>