* convension about type argument on _IO macro
@ 2016-07-02 20:34 Colin Vidal
0 siblings, 0 replies; only message in thread
From: Colin Vidal @ 2016-07-02 20:34 UTC (permalink / raw)
To: kernelnewbies
Hi all,
In LDDv3, chapter 6, on ioctl, macros IOCTQUANTIUM is defined with
_IO(SCULL_MAGIC, 3).
IOCT_* tells that a value (given directly as value through the argument)
is set to the device. However, no type is given to this macro.
It is not a big deal since this macro is just a helper to generate
identifiers, but, I wonder if there is any convention telling that we
should precise an argument only if it's a pointer ?
Thanks
- Colin
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-02 20:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-02 20:34 convension about type argument on _IO macro Colin Vidal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).