Skip to content

Commit

Permalink
doc: ioctl: add a developer hint about passing pointer in passed stru…
Browse files Browse the repository at this point in the history
…cture

JIRA: CI-285
  • Loading branch information
adamdebek authored and damianloew committed Jun 23, 2023
1 parent 2b3f485 commit 242a2c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libc/functions/i/ioctl.part-impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ The resulting request will be in such form: 2 bits describe direction (`00`: non

It is worth to note that to get data sent to driver inside message, one should use `ioctl_unapck()`.

Also, if you are willing to pass structure with pointer in _arg_ argument of `ioctl()` you
should custom pack your message in `ioctl_pack()` (see ioctl_pack() implementation).


## Return value

Expand Down

0 comments on commit 242a2c2

Please sign in to comment.