netdev
[Top] [All Lists]

Re: [RFC] Wireless extensions rethink

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: Re: [RFC] Wireless extensions rethink
From: Jean Tourrilhes <jt@xxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Jun 2004 13:39:29 -0700
Address: HP Labs, 1U-17, 1501 Page Mill road, Palo Alto, CA 94304, USA.
Cc: netdev@xxxxxxxxxxx, Gertjan van Wingerde <gwingerde@xxxxxxx>, sfeldma@xxxxxxxxx, jkmaline@xxxxxxxxx
E-mail: jt@xxxxxxxxxx
In-reply-to: <40D1F9C1.1040907@xxxxxxxxx>
Organisation: HP Labs Palo Alto
References: <40D0D265.3070804@xxxxxxxxx> <20040617174717.GA30460@xxxxxxxxxxxxxxxxxx> <40D1E185.2010201@xxxxxxxxx> <40D1E24C.8090802@xxxxxxxxx> <20040617185815.GB32216@xxxxxxxxxxxxxxxxxx> <40D1EAD9.6090403@xxxxxxxxx> <20040617191338.GD32216@xxxxxxxxxxxxxxxxxx> <40D1F23E.9090307@xxxxxxxxx> <20040617194448.GC31763@xxxxxxxxxxxxxxxxxx> <40D1F9C1.1040907@xxxxxxxxx>
Reply-to: jt@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Thu, Jun 17, 2004 at 04:06:25PM -0400, Jeff Garzik wrote:
> 
> >>The general API, yes.  But most driver-private interfaces will fail 
> >>miserably through 32/64-bit translation.
> >
> >
> >     That's fixable, and easy to fix, if needed. You have all the
> >data you need in the kernel.
> 
> Not really -- it's the same problem as SIOCDEVPRIVATE.  Driver-private 
> interfaces by definition change for each driver.  Translation of the 
> same ioctl differs on a per-driver basis.  Consider what happens when 
> passing pointers from userland, for example...

        I can assure you that I thought about that precise issue when
I re-designed the API in 91. I confirm that all the necessary data in
the kernel to do this properly.
        Proof : the "copy_to/from_user" is done in the generic code,
not in the driver. The driver export to the generic code all the data
needed to know where are those user pointers. What else is needed ?

> It was for this reason that we created the MII ioctls, which were 
> previously SIOCDEVPRIVATE.

        Totally different business. Those ioctls were totally
anonymous, with no meta-data.

>       Jeff

        Jean

<Prev in Thread] Current Thread [Next in Thread>