Basic Mechanism of LKL and UINTR

LKL Mechanism basic mechanism of LKL The Request: An application makes a request (e.g., read) through LKL’s safe, interrupt-based system call API, then sleeps. The LKL kernel processes the request and calls out to a native stub (a callback function provided by the application). This stub executes the actual I/O operation using the host OS’s functions. The Responses: When the host I/O is finished, the native stub is notified. The stub triggers a simulated IRQ back into LKL to signal completion. LKL handles this completion and wakes up the original application thread with the data or result. Application Target: reuse the original, high-quality Linux kernel code as a library Code: arch/lkl: 实现内核到用户空间的移植,提供内核运行环境 tools/lkl: 提供用户接口,封装成库和工具供应用程序使用 ...

2025-09-21 · 1 min · Anekoique

MIT6.1810 Lab简记

the course is the new version of 6.828 and 6.s081(24 fall) IMPORTANT 我们已经在你学长学姐的实验报告中多次看到类似的悔恨: 因为没有及时记录实验心得而在编写实验报告的时候忘记了自己经历趣事的细节. 为了和助教们分享你的各种实验经历, 我们建议你在实验过程中随时记录实验心得, 比如自己踩过的大坑, 或者是调了一周之后才发现的一个弱智bug, 等等. ...

2025-08-27 · 28 min · Anekoique