1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/kernel/include/sortix/kernel
Jonas 'Sortie' Termansen 5e7605fad2 Implement threading primitives that truly sleep.
The idle thread is now actually run when the system is idle because it
truly goes idle. The idle thread is made power efficient by using the hlt
instruction rather than a busy loop.

The new futex(2) system call is used to implement fast user-space mutexes,
condition variables, and semaphores. The same backend and design is used as
kutexes for truly sleeping kernel mutexes and condition variables.

The new exit_thread(2) flag EXIT_THREAD_FUTEX_WAKE wakes a futex.

Sleeping on clocks in the kernel now uses timers for true sleep.

The interrupt worker thread now truly sleeps when idle.

Kernel threads are now named.

This is a compatible ABI change.
2021-06-23 22:10:47 +02:00
..
addralloc.h
clock.h
copy.h Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
cpu.h
cpuid.h
decl.h
descriptor.h Fix SEEK_END, file offset overflow, and read/write/mkpartition syscall bugs. 2017-12-04 23:56:46 +01:00
dtable.h
elf.h
fcache.h
fsfunc.h
harddisk.h
inode.h
interlock.h
interrupt.h Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
ioctx.h
ioport.h
kernel.h
keyboard.h
kthread.h Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
log.h
memorymanagement.h
mtable.h
panic.h
pat.h
pci-mmio.h
pci.h
pipe.h
poll.h
process.h Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
ps2.h
ptable.h
random.h
refcount.h
registers.h
scheduler.h Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
segment.h
signal.h Add signal mask support to ppoll(2). 2018-12-08 22:54:28 +01:00
sockopt.h
sortedlist.h
string.h
syscall.h Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
textbuffer.h
thread.h Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
time.h
timer.h Fix handling of overflow and non-canonical values in timespec APIs. 2021-06-22 21:48:27 +02:00
user-timer.h
video.h
vnode.h
worker.h
yielder.h