Re: [PATCH] x86 byteorder.h: use __asm__/__inline__ for userspace

David Woodhouse
2009-01-07T16:44:52Z

On Sat, 2008-12-27 at 20:12 +0100, Sam Ravnborg wrote:
>
> Speaking of what we want to use in exported headers.
> What is the recommendation with respect to uint32_t and friends?
> To my best knowledge they are banned in exported headers as they
> are not part of the kernel namespace and I see few users too.
> But is this something we should check for?

No, they're not banned. There are a few cases where they can't be used
and we have to use the kernels "speshul" __u32 types, because certain
headers get included by glibc and we can't "pollute" the namespace with
the C standard types. But in _most_ cases, using the standard C types is
just fine.

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation