diff options
| author | Laytan <laytanlaats@hotmail.com> | 2026-01-13 21:29:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 21:29:41 +0100 |
| commit | 792e6c75ee08ba62ca5578ec3ec273e90a94668b (patch) | |
| tree | 03d35fbebe482022a920e1b63e59ed5c0490f684 /core/sys/linux/bits.odin | |
| parent | 4af4b2f5757a8d45aba6bf5db5c99faf63150173 (diff) | |
| parent | 9d72025a0b6f7b94682662316b892ece865ad8aa (diff) | |
Merge branch 'master' into nbio
Diffstat (limited to 'core/sys/linux/bits.odin')
| -rw-r--r-- | core/sys/linux/bits.odin | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/core/sys/linux/bits.odin b/core/sys/linux/bits.odin index 59383638d..2ca7558a2 100644 --- a/core/sys/linux/bits.odin +++ b/core/sys/linux/bits.odin @@ -2275,3 +2275,34 @@ Eventfd_Flags_Bits :: enum { CLOEXEC = auto_cast Open_Flags_Bits.CLOEXEC, NONBLOCK = auto_cast Open_Flags_Bits.NONBLOCK, } + +Sched_Policy :: enum u32 { + OTHER = 0, + BATCH = 3, + IDLE = 5, + FIFO = 1, + RR = 2, + DEADLINE = 6, +} + +Sched_Flag_Bits :: enum { + RESET_ON_FORK = log2(0x01), + RECLAIM = log2(0x02), + DL_OVERRUN = log2(0x04), + KEEP_POLICY = log2(0x08), + KEEP_PARAMS = log2(0x10), + UTIL_CLAMP_MIN = log2(0x20), + UTIL_CLAMP_MAX = log2(0x40), +} + +Sched_Attr_Flag_Bits :: enum {} + +/* + See `constants.odin` for `MFD_HUGE_16KB`, et al. +*/ +Memfd_Create_Flag_Bits :: enum { + CLOEXEC = log2(0x1), + ALLOW_SEALING = log2(0x2), + HUGETLB = log2(0x4), +} + |