SchOS/include/core
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 4743df8c4a epoll: edge-triggered descriptors lost their edges on more than one CPU
EPOLLET reported a descriptor again only after a scan had seen it not
ready. Xorg watches its clients edge-triggered; when it read part of a
client's requests and more arrived before its next scan, the socket never
looked not-ready, so it was never reported again -- X waiting on the
client, the client waiting on X. One CPU almost never hit it; on a 16-thread
laptop the desktop froze within seconds: Window Maker's menu stuck, xterm
never mapped, text gone, and Caps Lock dead because X owns the LED.

Now a still-ready descriptor is reported again whenever anything has
signalled readiness since its last report (poll_generation()), which may be
spurious, as EPOLLET permits, and is never missed. Reproduced and verified
with QEMU at -smp 8: the root menu works and xterm runs cmatrix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
2026-10-25 11:59:12 +01:00
..
config_sinit.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
date.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
dbg.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
defs.h epoll: edge-triggered descriptors lost their edges on more than one CPU 2026-10-25 11:59:12 +01:00
dma.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
elf.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
hwinfo.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
irq.h irq: turn a PS/2 line over when its device waits and nothing comes 2026-10-24 11:10:29 +02:00
klog.h GMMOS: the Guru Meditation Micro OS, alive under the PSOGM 2026-10-25 01:11:04 +02:00
kmem.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
param.h Pseudo-terminals, and what tmux and htop needed around them 2026-10-25 02:11:10 +01:00
proc.h Threads 2026-10-25 03:03:50 +01:00
sbuf.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sleeplock.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
spinlock.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
syscall.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
types.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
uaccess.h include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00