[pnfs] [PATCH 03/10] pnfsd: Use 128 bit deviceid on server

Benny Halevy bhalevy at panasas.com
Sun Feb 10 03:48:28 EST 2008


On Feb. 09, 2008, 5:09 +0200, Dean Hildebrand <seattleplus at gmail.com> wrote:
> 
> Great lead in question though, what is the difference between all the 
> different ways to define a type (__be64, unint64_t, etc)?  Is there a 
> doc on this?

There's quite a proliferation of integral types having a defined bit width... :)
I'm not sure about a doc...

What I (think I) know is that the
u32 types and likes are available only in the kernel,
__u32 and friends are available both in user mode and in kernel.
uint32_t and friends are longer aliases of the above :)

__[bl]e types are defined as __bitwise so that the compiler will perform
stronger type checks so if anything but the same type is assigned to a
__bitwise typed variable is warned about.

Benny


More information about the pNFS mailing list