more uapi bits

This commit is contained in:
2026-10-18 14:47:02 +02:00
parent 27b2905dd7
commit 0ed321f622
7 changed files with 421 additions and 0 deletions
+3
View File
@@ -11,6 +11,9 @@
#define __IO(group, num) __IOC(__IOC_VOID, (group), (num), 0)
#define __IOR(group, num, type) __IOC(__IOC_OUT, (group), (num), sizeof(type))
#define __IOW(group, num, type) __IOC(__IOC_IN, (group), (num), sizeof(type))
#define __IOC_GROUP(req) (((req) >> 8) & 0xFF)
#define __IOC_NUM(req) ((req) & 0xFF)
#define __IOC_LEN(req) (((req) >> 16) & 0x3FFF)
#define __TCGETS 0x5401
#define __TCSETS 0x5402