Linux IOCTL commands -


trying implement ioctl commands, , encountered below:

if _io both read , write

than why should consider _ior , _iow

any clue please ?

actually _io ioctls don't take parameters @ all. instance, want trigger command has been set in driver, may not need pass data @ all!

_iowr ioctls pass parameters in , out. in experience these rare , can confusing since 1 parameter utilized 2 different purposes can useful when need it.

see beginning of http://www.mjmwired.net/kernel/documentation/ioctl-number.txt

there isn't in kernel enforces direction, documentation purposes.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -