[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070311201148.GA25938@p15091797.pureserver.info>
Date: Sun, 11 Mar 2007 21:11:49 +0100
From: Ulrich Kunitz <kune@...ne-taler.de>
To: Johannes Berg <johannes@...solutions.net>
Cc: jt@....hp.com, Jouni Malinen <jkm@...icescape.com>,
Michael Buesch <mb@...sch.de>, linux-wireless@...r.kernel.org,
netdev <netdev@...r.kernel.org>, Jeff Garzik <jgarzik@...ox.com>,
Dan Williams <dcbw@...hat.com>
Subject: Re: wireless extensions vs. 64-bit architectures
> I'm still not convinced that papering over the problem in userspace is a
> real solution.
>
> johannes
Just my 2 cents. I support this. What are the options? I see only
two:
1. Use different magic numbers for 32 bit and 64 bit structures. A
flag is an alternative, but will be more difficult to debug.
Generation of the magic should be easy, use sizeof(unsigned
long) as test. User space has to care than for the rest.
2. Make the data representation identical in 32 bit and 64 bit.
This shouldn't be to difficult, if only u8, u16 and u32 types
are used. Pointers should be given as offsets. If necessary
align and/or packed attributes could be used.
If the kernel interface can be changed, I vote for option 2,
because user space has then to deal with a unique data layout.
If the wext kernel interface cannot be changed to maintain
backward compatibility, then I have to admit band-aids in user
space are needed. However cfg80211 must not suffer from the same issues.
--
Uli Kunitz
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists