how to use the function copyout()
Matthew N. Dodd
mdodd at FreeBSD.ORG
Mon Jul 25 15:06:28 GMT 2005
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
More information about the freebsd-hackers
mailing list