From: Kyle Moffett <mrmacman_g4@mac.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: Nix <nix@esperi.org.uk>,
arjanv@redhat.com, linux-kernel@vger.kernel.org,
ivan.korzakow@gmail.com, fawadlateef@gmail.com
Subject: Re: best way to access device driver functions
Date: Fri, 16 Sep 2005 14:30:39 -0400 [thread overview]
Message-ID: <5162CC44-37D0-4FEB-ADC6-887F6FC3C3BA@mac.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0509161133410.2041@chaos.analogic.com>
On Sep 16, 2005, at 12:02:59, linux-os (Dick Johnson) wrote:
> Somebody reported to me that there was some special "optimization"
> in Linux that interpreted ioctl() function calls without regard to
> the specific device that was open (gawd I hope not), and that if
> you used "already-used" function numbers for your device-specific
> ioctl(), then strange things would occur.
IIRC, that used to be the case, but isn't anymore.
> However, the kernel is now LOCKED during an ioctl() call. Older
> Linux versions didn't lock the kernel. The upshotof this is that if
> you have some ioctl() function that takes some time, like testing
> the memory in your board, you will find the system unresponsive
> during that test! You can unlock the kernel in your ioctl() if this
> is a problem.
This is *completely* wrong. The kernel used to lock_kernel() for
*every* ioctl. Recent changes added locked and unlocked ioctls, such
that ioctls that do not need the BKL can ignore it completely. You
claimed to have read the code, given this typical Wrongbot statement,
I guess I can say for sure that you didn't.
Cheers,
Kyle Moffett
--
Premature optimization is the root of all evil in programming
-- C.A.R. Hoare
PS: Use a different email service! Your "I tried to kill it with
the above dot" and bullshit apology is worth zilch. A quick
calculation shows that over the last month and a half, you have
sent 76 or so emails to the list, all of which have contained your
useless 663-byte corporate message, meaning you have sent 50K of spam
to the list over that time period, which has been distributed to
several thousand accounts by vger, resulting in probably over 100MB
of spam over that time period. Fix it or use a different email account!
I am not the intended recipient for the following email text. I will
destroy all copies of this information, including further copies of
it, because I am not the intended recipient of those either. Plonk!
> .
> I apologize for the following. I tried to kill it with the above dot :
>
> ****************************************************************
> The information transmitted in this message is confidential and may
> be privileged. Any review, retransmission, dissemination, or other
> use of this information by persons or entities other than the
> intended recipient is prohibited. If you are not the intended
> recipient, please notify Analogic Corporation immediately - by
> replying to this message or by sending an email to
> DeliveryErrors@analogic.com - and destroy all copies of this
> information, including any attachments, without reading or
> disclosing them.
>
> Thank you.
next prev parent reply other threads:[~2005-09-16 18:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 7:48 best way to access device driver functions Ivan Korzakow
2005-09-15 8:03 ` Fawad Lateef
2005-09-15 12:18 ` Ivan Korzakow
2005-09-15 15:39 ` Fawad Lateef
2005-09-16 12:59 ` Nix
2005-09-16 14:07 ` Arjan van de Ven
2005-09-16 15:24 ` Nix
2005-09-16 16:02 ` linux-os (Dick Johnson)
2005-09-16 18:30 ` Kyle Moffett [this message]
2005-09-16 19:20 ` linux-os (Dick Johnson)
2005-09-16 19:41 ` Valdis.Kletnieks
2005-09-16 17:52 ` Alexey Dobriyan
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=5162CC44-37D0-4FEB-ADC6-887F6FC3C3BA@mac.com \
--to=mrmacman_g4@mac.com \
--cc=arjanv@redhat.com \
--cc=fawadlateef@gmail.com \
--cc=ivan.korzakow@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=nix@esperi.org.uk \
/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