Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Sep 2006 19:09:11 -0700
From:      Kristis Makris <kristis.makris@asu.edu>
To:        Matthew Jacob <lydianconcepts@gmail.com>
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: ioctl: uiomove, copyin, copyout
Message-ID:  <1157508551.3275.101.camel@syd.mkgnu.net>
In-Reply-To: <7579f7fb0609051701u6a863428m7ec8d488ac7a8047@mail.gmail.com>
References:  <1157500005.3414.92.camel@syd.mkgnu.net> <7579f7fb0609051701u6a863428m7ec8d488ac7a8047@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Check the format of your ioctl code to make sure that it follows BSD
> rules for getting passed to your driver w/o interpretation. Linux IIRC
> follows SYSV ioctl semantics, which means that the ioctl is never
> interpreted by the kernel above the driver. BSD ioctls semantics looks
> at the type nibble to decide whether the ioctl parameters can be
> copied directly to the kernel and presented to driver as a pointer you
> can just de-reference rather than a pointer you have to perform copyin
> on.
> 
> Check sys/ioccom.h.

That was it. I learned something new today. Thanks a lot.






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