Re: Purpose of using __be16 inside a data structure?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux