All of lore.kernel.org
 help / color / mirror / Atom feed
From: j.neuschaefer@gmx.net (Jonathan Neuschäfer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Purpose of using __be16 inside a data structure?
Date: Tue, 25 Oct 2011 16:25:12 +0200	[thread overview]
Message-ID: <20111025142511.GA1833@debian.debian> (raw)
In-Reply-To: <CAGVXcSaTRRjUeMexFj4tRAUiDOBsTUOipxPtoT8MJuBKS0vTjA@mail.gmail.com>

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

  reply	other threads:[~2011-10-25 14:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09  7:25 Purpose of using __be16 inside a data structure? 陳國成
2011-08-24  5:16 ` Adam Lee
2011-08-25  5:41   ` 陳國成
2011-10-24 19:54 ` Kevin O'Gorman
2011-10-25 14:25   ` Jonathan Neuschäfer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-14  0:41 陳國成
2011-08-14  6:21 ` Michael Blizek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111025142511.GA1833@debian.debian \
    --to=j.neuschaefer@gmx.net \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.