内核版本查看

sysroot/usr/include/linux/version.h

kernel/include/generated/uapi/linux/version.h

#define LINUX_VERSION_CODE 330306    0x50A42 = 5.10.66

#define LINUX_VERSION_CODE 267008    0x41300 = 4.19.00


#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))

 

posted @ 2024-08-19 16:43  ahuo  阅读(4)  评论(0编辑  收藏  举报