STRUCT GHES_TASK_WORK(9)
π struct ghes_task_work(9) β like, the whole page, bestie
okay so this is a page straight out of the Kernel API Manual, and it's all about struct ghes_task_work β a little struct that exists for synchronous RAS event. That's it, that's the whole vibe. Let's get into it β¨
π SYNOPSIS π
Here's the actual shape of it, and yes you're gonna want to copy this exactly because structs do not play about spelling:
struct ghes_task_work {
struct callback_head twork;
u64 pfn;
int flags;
};
Three members. Compact. Iconic. No notes. π«Ά
πΈ MEMBERS πΈ
tworkβ thecallback_headfor task work. it's the callback head, doing callback head things, for task work. slay.pfnβ the page frame number of the corrupted page π like, which page is being a problem.flagsβ work control flags π the knobs that control the work.
π¦ DESCRIPTION π¦
So what even is this struct? It's the structure you use to pass task work along so it gets handled before returning to user-space, and the way that happens is via task_work_add. That's the entire job description. It's giving "little envelope that carries a chore to the kernel's to-do list before we get back to you" energy π
ngl this is a short one but that's fine, lowkey every struct deserves its moment π
π₯ SEE ALSO π₯
If you wanna go deeper (and you do, bestie), check out the kernel file ./drivers/acpi/apei/ghes.c plus these icon queens:
ghes_estatus_pool_region_free(9)ghes_has_active_errors(9)ghes_map_error_status(9)ghes_unmap_error_status(9)
aaaand that's the page π it lives under ./drivers/acpi/apei, it's dated October 2026, and it's fr fr titled struct ghes_task_work(9). go off, kernel bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms