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

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

 



On 1/20/07, Ramagudi Naziir <naziirr@xxxxxxxxx> wrote:
can you please explain this ? what is le32_to_cpu ?

just as the name implies, it converts a 32bit little endian to the
native cpu endian

so if your CPU is little endian already, this is a nop ... but if it's
a big endian, then the macro does the appropriate byte swapping
-mike

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