LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jonathan Corbet <corbet@lwn.net>
To: "Brian D. McGrew" <brian@visionpro.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Ioctl
Date: Mon, 31 Jan 2011 12:55:24 -0700	[thread overview]
Message-ID: <20110131125524.116fe96e@bike.lwn.net> (raw)
In-Reply-To: <C96C4FE1.46AA1%brian@visionpro.com>

On Mon, 31 Jan 2011 11:39:13 -0800
"Brian D. McGrew" <brian@visionpro.com> wrote:

> I'm very new at working with the kernel and device drivers and I'm trying to
> bring ours drivers up from a 2.6.16 kernel to 2.6.37.  I'm noticing that
> ioctl() doesn't seem to be raound anymore, or at least I can't find it.

What you almost certainly want is unlocked_ioctl(), which handles ioctl()
calls but lacks the protection of the (soon to be removed) big kernel
lock.  If your driver is properly written, you should have no problem
using unlocked_ioctl(), but do note that the function prototype is a
little different.

jon

      parent reply	other threads:[~2011-01-31 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 19:39 Ioctl Brian D. McGrew
2011-01-31 19:51 ` Ioctl Randy Dunlap
2011-01-31 19:55 ` Jonathan Corbet [this message]

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=20110131125524.116fe96e@bike.lwn.net \
    --to=corbet@lwn.net \
    --cc=brian@visionpro.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: Ioctl' \
    /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

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).