All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: Christian Lamparter <chunkeey@web.de>
Cc: Tomas Winkler <tomasw@gmail.com>,
	linux-wireless@vger.kernel.org,
	John W Linville <linville@tuxdriver.com>,
	Larry Finger <Larry.Finger@lwfinger.net>
Subject: Re: [PATCH] p54usb: support LM87 firmwares
Date: Wed, 03 Sep 2008 21:44:22 -0400	[thread overview]
Message-ID: <1220492662.7700.21.camel@dv> (raw)
In-Reply-To: <200809030200.50745.chunkeey@web.de>

On Wed, 2008-09-03 at 02:00 +0200, Christian Lamparter wrote:

> whats the main difference between be32_to_cpu vs be32_to_cpus vs be32_to_cpup?
> Does the extra p just stand for something like "pointer"?

Yes.  See include/linux/byteorder/generic.h
> 
> hmm,
> if yes, >>*<<(__be32 *)bootrec->data.
> if no, please tell me more about it ;-). 

The pointer versions take the pointer.  They do the cast and the
dereference for you.  The cast in your code should be unnecessary.

The in-situ version don't return anything; they put the result into the
original variable.

-- 
Regards,
Pavel Roskin

  reply	other threads:[~2008-09-04  1:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 19:39 [PATCH] p54usb: support LM87 firmwares Christian Lamparter
2008-09-02 23:14 ` Tomas Winkler
2008-09-03  0:00   ` Christian Lamparter
2008-09-04  1:44     ` Pavel Roskin [this message]
2008-09-04 10:29       ` [PATCH v2] " Christian Lamparter
2008-09-06 22:57         ` Larry Finger
2008-09-06 23:19           ` Chr
2008-09-06 23:33             ` Larry Finger
2008-09-07  0:25               ` Chr
2008-09-07  0:32                 ` Larry Finger
2008-09-07  0:56                   ` Christian Lamparter

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=1220492662.7700.21.camel@dv \
    --to=proski@gnu.org \
    --cc=Larry.Finger@lwfinger.net \
    --cc=chunkeey@web.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=tomasw@gmail.com \
    /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.