What does "typedef __u16 __bitwise __le16;" mean mean in the Linux kernel?

What does typedef __u16 __bitwise __le16;the Linux kernel mean ?

in fact, what does le mean here? I vaguely see that this is an unsigned 16-bit int?

Thank you for your help.

+5
source share
3 answers

I found that ( source ) and which

Type identifiers

u16, u32 u64, , , . , , , () .

, , linux/kernel.h.

__le16
__le32  
__le64


__be16
__be32
__be64
+8

: endian

: . @Pben answer

+3

Documentation/sparse.txt:

gcc __bitwise/__ force stuff , , gcc.

, :

. .

.

typedef __u16 __bitwise __my_type1;
typedef __u16 __bitwise __my_type2;

Sparse , __my_type1 __my_type2.

with. __bitwise simply means order sensitivity, it does not indicate big-endian or little-endian.

I'm right?

0
source

All Articles