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/x86/swap_x86.h # 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 / x86 / swap_x86.h` 12 lines ยท 610 bytes Raw Blame History 1 /* swap_x86.h -- live kernel swap declarations (kernel-internal). */ 2 #ifndef AIENOS_CK_SWAP_X86_H 3 #define AIENOS_CK_SWAP_X86_H 4 #include "../mm/frames.h" 5 #include "../../boot/handoff.h" 6 /* Init: pre-allocate the swap buffer. Call once in kernel_main. */ 7 void ck_x86_swap_init(struct ck_frames *fr); 8 /* Step: check for swap triggers (UDP or disk-staged). Called from hold_step. 9 * Returns 1 only if a swap was performed (and never returns in that case). 10 * hand = current handoff, tramp_pa = AP trampoline page physical address. */ 11 int ck_x86_swap_step(const struct ck_handoff *hand, uint64_t tramp_pa); 12 #endif