Re: [PATCH 4/4] u32: use get_unaligned_be32

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Changli Gao
Date: Monday, August 2, 2010 - 4:01 pm

On Tue, Aug 3, 2010 at 6:55 AM, Ben Hutchings <bhutchings@solarflare.com> wrote:

__be32 does't mean the dereferenced data will be converted to be32. It
is just a notation.

typedef __u16 __bitwise __le16;
typedef __u16 __bitwise __be16;
typedef __u32 __bitwise __le32;
typedef __u32 __bitwise __be32;
typedef __u64 __bitwise __le64;
typedef __u64 __bitwise __be64;

__be* is defined the same as __le*. The compiler can't get any endian info.

Here is the discussion about http://kerneltrap.org/node/3848

Thanks.

-- 
Regards,
Changli Gao(xiaosuo@gmail.com)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/4] u32: use get_unaligned_be32, Stephen Hemminger, (Mon Aug 2, 3:00 pm)
Re: [PATCH 4/4] u32: use get_unaligned_be32, Changli Gao, (Mon Aug 2, 3:34 pm)
Re: [PATCH 4/4] u32: use get_unaligned_be32, Stephen Hemminger, (Mon Aug 2, 3:45 pm)
Re: [PATCH 4/4] u32: use get_unaligned_be32, Ben Hutchings, (Mon Aug 2, 3:55 pm)
Re: [PATCH 4/4] u32: use get_unaligned_be32, Changli Gao, (Mon Aug 2, 4:01 pm)