Subject: Re: Question on ioctl
To: Martin Husemann <martin@duskware.de>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-users
Date: 02/16/2002 00:26:42
>> Is this format for 'request' enforced anywhere in NetBsd, or is
>> it just a convention?
>
>Well, this is used to copy the argument between kernel and user space. So
>if you don't follow it, be sure to mark the ioctl as IOC_VOID.
>
>I am not sure what you are trying to achive, but it sounds like an ugly
>and unnecessary hack.
well...it could also be a feature. :)
otoh, you could pass, as the third argument to ioctl, a pointer to a
struct iovec (as an example) and then do more copyin()/copyout()
elsewhere completely independently of the ioctl() mechanism. sort of
like pointers to pointers...
just a thought...
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."