|
|
Log in / Subscribe / Register

ioctl() forever?

ioctl() forever?

Posted Jun 9, 2022 19:25 UTC (Thu) by mathstuf (subscriber, #69389)
In reply to: ioctl() forever? by camhusmj38
Parent article: ioctl() forever?

I like how the metadata is "optional" when it probably means "nullable". I doubt calling this without those arguments at all works out that well in practice.


to post comments

ioctl() forever?

Posted Jun 9, 2022 19:27 UTC (Thu) by camhusmj38 (subscriber, #99234) [Link]

I looked it up - the rules are documented. Which combination of nulls are allowed - if you go the overlapped (async) route you can leave the number of bytes out null and vice versa.

ioctl() forever?

Posted Jun 9, 2022 19:47 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

It works fine for IOCTLs that don't need input or output parameters.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds