mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Valdis.Kletnieks@vt.edu
To: Singaravelan Nallasellan <singaravelann@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: New IOCTLs
Date: Wed, 17 Sep 2008 13:45:45 -0400	[thread overview]
Message-ID: <17437.1221673545@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Wed, 17 Sep 2008 22:25:35 +0530." <3baf3d760809170955l5dec0495n93fc373a52a120ae@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]

On Wed, 17 Sep 2008 22:25:35 +0530, Singaravelan Nallasellan said:
> I need to send device control messages to the driver. I am planning to
> use the IOCTLs. But I came to know that Linux community does not
> accept any new IOCTLs anymore.

New IOCTL's are *not* in the "not accepting any new" state.  However, there
*will* be questioning whether a new IOCTL is the proper API, or if there
should be some other interface instead (sysfs, debugfs, netlink, and so on).

The basic problem with IOCTLs is that they tend to quickly become ugly design,
with little attention paid to things like proper 32/64 bit interfaces (what
happens when a 32-bit program tries to pass a parameter to a 32-bit
kernel, and to a 64-bit kernel?).

Maybe an ioctl is the right way to send your device control messages. Maybe
some other API is better.  What sort of messages need to be sent, and what
sort of throughput/latency requirements are there, and so on?  If you tell us
more about what you're trying to get to/from userspace and the device, we
can better suggest what to do...

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

  parent reply	other threads:[~2008-09-17 17:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17 16:55 Singaravelan Nallasellan
2008-09-17 17:08 ` Alan Cox
2008-09-17 17:45 ` Valdis.Kletnieks [this message]
2008-09-17 20:12 ` Chris Snook
2008-09-18  4:23   ` Singaravelan Nallasellan
2008-09-18  9:11     ` Louis Rilling
2008-09-19 19:22     ` Chris Snook
2008-12-01 21:14     ` Enrico Weigelt
     [not found] <bd8Hz-6QR-17@gated-at.bofh.it>
     [not found] ` <bdbFu-2cb-23@gated-at.bofh.it>
     [not found]   ` <bdjjC-3tt-7@gated-at.bofh.it>
     [not found]     ` <bdnQd-13j-17@gated-at.bofh.it>
2008-09-18 14:54       ` Bodo Eggert

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=17437.1221673545@turing-police.cc.vt.edu \
    --to=valdis.kletnieks@vt.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=singaravelann@gmail.com \
    /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

all inboxes | Powered by JetHome®