mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Eric Gaumer <gaumerel@ecs.fullerton.edu>
Cc: Alexey Dobriyan <adobriyan@mail.ru>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] orinoco rfmon
Date: Sun, 27 Feb 2005 23:44:08 -0800	[thread overview]
Message-ID: <20050228074407.GA25480@kroah.com> (raw)
In-Reply-To: <4220FC1D.6010404@ecs.fullerton.edu>

On Sat, Feb 26, 2005 at 02:45:49PM -0800, Eric Gaumer wrote:
> What is the difference between u* and uint*_t ? Both are derived from the 
> same basic data type.
> 
> typedef unsigned char __u8;
> typedef         __u8            uint8_t;
> 
> And...
> 
> typedef unsigned char u8;

Don't use the uint*_t types, they are not correct.  See the lkml
archives for why this is true.

Use the u8 for when you are in the kernel, and __u8 when you need it for
a variable that crosses the userspace/kernelspace barrier.

thanks,

greg k-h

  reply	other threads:[~2005-02-28  7:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26 18:10 Eric Gaumer
2005-02-26 20:59 ` Alexey Dobriyan
2005-02-26 22:45   ` Eric Gaumer
2005-02-28  7:44     ` Greg KH [this message]
2005-02-28  7:48       ` Eric Gaumer
2005-02-27  3:39 ` David Gibson
2005-02-28  0:45   ` Eric Gaumer
2005-02-28  0:54     ` David Gibson
2005-02-28 20:01       ` Pavel Roskin

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=20050228074407.GA25480@kroah.com \
    --to=greg@kroah.com \
    --cc=adobriyan@mail.ru \
    --cc=gaumerel@ecs.fullerton.edu \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome