Re: u32 vs. __u32 (and what is __attribute__((bitwise) ?)

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

 



Hi,

On 1/19/07, Ramagudi Naziir <naziirr@xxxxxxxxx> wrote:
Is there a difference between u32 to __u32 ?
(I didn't see any in the source).

__u32 is usually used to refer to variables that interact with user-space.

/* 9 * __xx is ok: it doesn't pollute the POSIX namespace. Use these
in the 10 * header files exported to user space 11 */

http://lxr.linux.no/source/include/asm-i386/types.h#L20

and what are __le16 and __be16 ?

unsigned short for little endian and big-endian formats.

they seems to be the same. they use __attribute__((bitwise)).
what is this attribute ?

A compiler feature.
http://www.ohse.de/uwe/articles/gcc-attributes.html

bitwise attribute:
http://kerneltrap.org/node/3848

SK

--
Shakthi Kannan
http://www.shakthimaan.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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