tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ioctl() and driver function d_ioctl return values



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







Home | Main Index | Thread Index | Old Index