kernel: add futex definitions

This commit is contained in:
2026-03-15 22:22:58 +00:00
parent c1e0b38952
commit 30c9c9db45
4 changed files with 101 additions and 8 deletions

View File

View File

@@ -46,20 +46,16 @@
#define IOVEC(p, len) \
{ \
.io_base = (virt_addr_t)(p), \
.io_len = (len), \
.io_base = (virt_addr_t)(p), .io_len = (len), \
}
#define MSG_HANDLE(mode, value) \
{ \
.hnd_mode = (mode), \
.hnd_value = (value), \
.hnd_mode = (mode), .hnd_value = (value), \
}
#define MSG(data, data_count, handles, handles_len) \
{ \
.msg_data = (data), \
.msg_data_count = (data_count), \
.msg_handles = (handles), \
.msg_handles_count = (handles_len), \
.msg_data = (data), .msg_data_count = (data_count), \
.msg_handles = (handles), .msg_handles_count = (handles_len), \
}
typedef uintptr_t phys_addr_t;
@@ -75,6 +71,7 @@ typedef uint32_t kern_handle_t;
typedef uint32_t kern_config_key_t;
typedef uint32_t vm_prot_t;
typedef int64_t ssize_t;
typedef uint32_t kern_futex_t;
typedef unsigned short equeue_packet_type_t;