RE: how to use the function copyout()
From: Matthew N. Dodd (mdodd_at_FreeBSD.ORG)
Date: 07/25/05
- Previous message: Norbert Koch: "RE: how to use the function copyout()"
- In reply to: Felix-KM: "RE: how to use the function copyout()"
- Next in thread: Julian Elischer: "Re: how to use the function copyout()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 25 Jul 2005 11:06:19 -0400 (EDT) To: Felix-KM <Felix-KM@yandex.ru>
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 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Norbert Koch: "RE: how to use the function copyout()"
- In reply to: Felix-KM: "RE: how to use the function copyout()"
- Next in thread: Julian Elischer: "Re: how to use the function copyout()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]