MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / InterruptWork

Class InterruptWork

src/task/include/task_manager.hpp:279–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 * @brief 中断线程处理结构体
278 */
279 struct InterruptWork {
280 using WorkHandler = void (*)(InterruptWork*);
281
282 /// 中断号
283 uint64_t interrupt_no{0};
284 /// 中断上下文
285 cpu_io::TrapContext* data{nullptr};
286 /// 时间戳
287 uint64_t timestamp{0};
288
289 /// 工作处理函数
290 WorkHandler handler{nullptr};
291 };
292
293 /// 中断工作队列
294 using InterruptWorkQueue =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected