Re: [PATCH] change ifmap.base_addr to u_long type

From: David S. Miller (davem@redhat.com)
Date: Thu Sep 07 2000 - 16:44:28 EST


   Date: Thu, 07 Sep 2000 14:36:02 -0700
   From: Jun Sun <jsun@mvista.com>

   Here is a small patch which is needed on non-i386 platforms.

The layout of this structure is exported to userspace
applications, thus you cannot simply just change the
type in this structure to get the change you need.

This change thus cannot be made as-is.

You must find some other way, let me give you one example
of a potentially acceptable solution:

1) Add new member to union inside of ifreq where ifmap
   currently lives. Add new member, perhaps called ifmap2
   which uses more appropriate types for base_addr member.

2) Add new ifreq call which looks at ifmap2 instead of ifmap.

This way, existing userland applications still work as they
did before hand, and new ones can be written to use the ifmap2
version of the interface.

Also be sure that the glibc maintainers get this change once it
is in the kernel.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:31 EST