Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/native/kernel/core/pipe_test.c # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / native / kernel / core / pipe_test.c` 173 lines ยท 8799 bytes Raw Blame History 1 /* pipe_test.c -- AIENOS_CK_PIPE kernel self-test (TEST ONLY, CK_PIPE_TEST=1; gate scripts/qemu_ck_pipe_test.sh). 2 * 3 * Drives the pipe primitive (core/pipe.c, aienos-mv#428) inside the kernel: a producer and a consumer task, step 4 * functions interleaved by the run-queue scheduler (core/sched.c), each holding one end in its own capability table, 5 * through the same driver the host test uses (core/pipe_drive.h). The kernel's wait hook yields to the scheduler 6 * (it keeps ticking it, running the other task) until the wake hook fires; this is cooperative scheduling inside one 7 * kernel thread, not a context switch between M3 threads. Lines on the serial console: 8 * pipe_check: name= result=PASS|FAIL
;