mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Maciej Zenczykowski <maze@cela.pl>
Cc: Christian Axelsson <smiler@lanil.mine.nu>,
	Pontus Fuchs <pof@users.sourceforge.net>,
	Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Announce: ndiswrapper
Date: Tue, 18 Nov 2003 08:49:24 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.53.0311180838150.30178@chaos> (raw)
In-Reply-To: <Pine.LNX.4.44.0311181422300.29639-100000@gaia.cela.pl>

On Tue, 18 Nov 2003, Maciej Zenczykowski wrote:

> > Pontus Fuchs wrote:
> > > Hi,
> > >
> > > Since some vendors refuses to release specs or even a binary
> > > Linux-driver for their WLAN cards I desided to try to solve it myself by
> > > making a kernel module that can load Ndis (windows network driver API)
> > > drivers. I'm not trying to implement all of the Ndis API but rather
> > > implement the functions needed to get these unsupported cards working.
> >
> > Sounds like a plan!
>
> Definetely agree - question though, are you loading these drivers into
> ring 0 (kernel space)?  As far as I know linux only supports ring 0
> (kernel) and 3 (userspace).  However this would seem to be the perfect
> place to load the binary modules in ring 1 (or even userspace if that was
> possible...).  I can't say I trust any binary only and/or windows driver
> to not make a mess of my kernel :)  actually the driver may actually be
> errorless - it's just designed for a different operating system and thus
> some unexplainable misshaps could easily happen...
>
> While we're at it, loading binary only modules into ring 1 would probably
> also be a good idea for the NV module et al.  Although I have no idea how
> hard it would be to make ring 1 function (and whether there actually is
> any point to doing it in ring 1 instead of ring 3 with iopl/ioperm anyway)
> and how big the performance penalty for non-ring 0 would be...
>
> Cheers,
> MaZe.
>

Do the NDIS drivers work in 32-bit land? Some kludges do! They were
the real-mode DOS driver interface to MS-DOS. Now there is a kludge
on top of a kludge called NDIS-6. They also used the Pascal calling
convention which screws up 'C' code (you need an assembly wrapper).

They are a waste-of-time. Why would you clone a Microsoft interface
for a non-Microsoft Operating System when you can't allow such
junk to run inside the kernel anyway.

The problem with third-party binary drivers is not the interface
to the kernel. Linux has a public interface, well established
and well known. The problem is that any third-party driver can
completely f**k up the kernel, either by mistake or by design.
So the third-party drivers MUST provide source-code so they
can be fixed or made to behave if (read when) problems are found.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.



  parent reply	other threads:[~2003-11-18 13:51 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18 11:02 Pontus Fuchs
2003-11-18 12:51 ` Christian Axelsson
2003-11-18 13:26   ` Maciej Zenczykowski
2003-11-18 13:37     ` Christian Axelsson
2003-11-18 13:49     ` Richard B. Johnson [this message]
2003-11-18 14:02       ` Arjan van de Ven
2003-11-18 13:59 ` Jeff Garzik
2003-11-18 14:14   ` Maciej Zenczykowski
2003-11-18 14:49     ` Jan-Benedict Glaw
2003-11-18 15:31       ` Maciej Zenczykowski
2003-11-18 14:19   ` Richard B. Johnson
2003-11-18 14:31   ` Davide Libenzi
2003-11-18 22:22 ` Pavel Machek
2003-11-20  3:11 Jean Tourrilhes
2003-11-20  3:26 ` Jeff Garzik
2003-11-20  3:34   ` Jean Tourrilhes
2003-11-21 12:05     ` Vojtech Pavlik
2003-11-21 17:25       ` Jean Tourrilhes
2003-11-21 17:30         ` Jeff Garzik
2003-11-21 17:43           ` Vojtech Pavlik
2003-11-21 17:48           ` Jean Tourrilhes
2003-11-21 17:50         ` Vojtech Pavlik
2003-11-20  4:00   ` William Lee Irwin III
2003-11-20  4:16     ` Nick Piggin
2003-11-20  4:35       ` Neil Brown
2003-11-20  4:49         ` Nick Piggin
2003-11-20  4:57           ` Randy.Dunlap
2003-11-20  5:05             ` Nick Piggin
2003-11-20  6:50               ` Benjamin Herrenschmidt
2003-11-20  5:27           ` William Lee Irwin III
2003-11-20  5:36             ` Jeff Garzik
2003-11-20  5:36             ` Nick Piggin
2003-11-20  4:38       ` William Lee Irwin III
2003-11-20  4:59         ` Nick Piggin
2003-11-20  5:12           ` William Lee Irwin III
2003-11-20  5:27             ` Nick Piggin
2003-11-24 15:40               ` Rik van Riel
2003-11-20 12:41           ` Diego Calleja García
2003-11-20 13:04             ` Christoph Hellwig
2003-11-20 20:24             ` Pasi Kärkkäinen
2003-11-20  5:11         ` Valdis.Kletnieks
2003-11-20  9:56         ` Ingo Oeser
2003-11-20 13:15           ` Ralph Metzler
2003-11-20  6:52       ` Matt Mackall
2003-11-20  7:40         ` Nick Piggin
2003-11-20 10:13         ` Geert Uytterhoeven
2003-11-20 10:17           ` William Lee Irwin III
2003-11-20 22:47             ` Bill Davidsen
2003-11-20 22:59               ` William Lee Irwin III
2003-11-20 23:26                 ` Oliver Hunt
2003-11-20 23:32                 ` Bill Davidsen
2003-11-20 13:19         ` Gene Heskett
2003-11-20 23:15         ` Bill Davidsen
2003-11-20  5:25     ` Jeff Garzik
2003-11-20  5:26       ` William Lee Irwin III
2003-11-20  6:54         ` Benjamin Herrenschmidt
2003-11-20 17:27           ` Jean Tourrilhes
2003-11-20 23:57             ` Benjamin Herrenschmidt
2003-11-21  0:03               ` Jean Tourrilhes
2003-11-20 16:47       ` Jason Lunz
2003-11-20 17:36         ` Jeff Garzik
2003-11-20 17:24     ` Jean Tourrilhes
2003-11-20 17:48       ` Richard B. Johnson
2003-11-20 18:03       ` William Lee Irwin III
2003-11-20 23:01       ` Bill Davidsen
2003-11-21  5:48         ` H. Peter Anvin
2003-11-21  7:26           ` Linus Torvalds
2003-11-21  7:37             ` H. Peter Anvin
2003-11-21  7:47             ` Nuno Silva
2003-11-21  7:51               ` Linus Torvalds
2003-11-20 10:55 ` Pavel Machek
2003-11-20 17:22   ` Jean Tourrilhes
2003-11-20 23:04 ` Bill Davidsen
2003-11-20 23:45   ` Jean Tourrilhes
2003-11-21 17:08     ` Bill Davidsen
2003-11-23 23:13 ` Jan Rychter
2003-11-20 23:53 Mudama, Eric
2003-11-21  0:00 ` Jean Tourrilhes
2003-11-21  1:01   ` Bob McElrath
2003-11-24 17:42     ` Pavel Machek
2003-11-21  7:58   ` Jan De Luyck
2003-11-21  8:59   ` Jamie Lokier
     [not found] <TNwv.6Lz.7@gated-at.bofh.it>
     [not found] ` <TPHV.1vf.1@gated-at.bofh.it>
     [not found]   ` <TQXu.420.11@gated-at.bofh.it>
2003-11-21  2:53     ` Andrew Miklas
2003-11-21 10:33       ` Maciej Zenczykowski

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=Pine.LNX.4.53.0311180838150.30178@chaos \
    --to=root@chaos.analogic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maze@cela.pl \
    --cc=pof@users.sourceforge.net \
    --cc=smiler@lanil.mine.nu \
    /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®