Test
Test

Type Define in C (Linux Kernel)

I am not very familar with C programming language, especially in Linux environment.

When first seeing the type such as u8, u16, u32, and u64, I was confused.

So I found the definations in the Linux/arch/powerpc/boot/types.h. This may help to understand.

1
2
3
4
5
6
7
8
typedef unsigned char           u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef signed char s8;
typedef short s16;
typedef int s32;
typedef long long s64;
Test
Thanks for testing~
  • Wechat Scan
  • Alipay Scan