kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: colin@cvidal.org (Colin Vidal)
To: kernelnewbies@lists.kernelnewbies.org
Subject: convension about type argument on _IO macro
Date: Sat, 02 Jul 2016 22:34:24 +0200	[thread overview]
Message-ID: <1467491664.2769691.655169025.43C3335D@webmail.messagingengine.com> (raw)

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

                 reply	other threads:[~2016-07-02 20:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467491664.2769691.655169025.43C3335D@webmail.messagingengine.com \
    --to=colin@cvidal.org \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).