Purpose of using __be16 inside a data structure?
Jonathan Neuschäfer
j.neuschaefer at gmx.net
Tue Oct 25 10:25:12 EDT 2011
On Mon, Oct 24, 2011 at 12:54:41PM -0700, Kevin O'Gorman wrote:
> On Tue, Aug 9, 2011 at 12:25 AM, 陳國成 <gcchen.org at gmail.com> wrote:
>
> > Hi all,
> >
> > Please tell me the difference between using unsigned short and __be16 to
> > declear a variable in a data structure.
[...]
> accomplishes this goal. From the name, I expect this to be a 16-bit type.
> It may have other attributes, such as a specific endianness (unusual except
Yes, it's for 16-bit big-endian data.
--
Jonathan Neuschäfer
More information about the Kernelnewbies
mailing list