RE: how to use the function copyout()

From: Matthew N. Dodd (mdodd_at_FreeBSD.ORG)
Date: 07/25/05

  • Next message: Steven Hartland: "Re: aac_pci.c Patch (support for HP ML110 G2)"
    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"
    

  • Next message: Steven Hartland: "Re: aac_pci.c Patch (support for HP ML110 G2)"