ioctl() and driver function d_ioctl return values

Beesdeckar <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Organization Soft in Engines
Message-ID <[email protected]>
Hello,

I am calling ioctl() with control code created with __IOWR() macro and 
third argument contains address of user-mode structure.
When module's d_ioctl() returns non-zero value then user-mode ioctl() 
returns always -1 and structure in user mode does not contain data 
filled by module.

Are both above things by design ?

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.