STRUCT SAN_DGPU_EVENT(9)
β¨ NAME β¨
ok so bestie, this is struct san_dgpu_event β the Discrete GPU ACPI event struct, from the struct san_dgpu_event(9) Kernel API Manual π and literally all it does is package up one (1) ACPI event so the kernel can pass it around. iconic behavior tbh.
π SYNOPSIS π
here's the whole vibe, no cap β copy it exactly:
struct san_dgpu_event {
u8 category;
u8 target;
u8 command;
u8 instance;
u16 length;
u8 *payload;
};
π MEMBERS π
okay so let's meet the cast, because every single field is doing main character work π₯
categoryβ the Category of the event. like, what kind of event is this. yes bestie, categories matter.targetβ the Target ID of the event source. it's giving "who is this even for" energy.commandβ the Command ID of the event. the actual instruction, the moment, the ~what do we do~.instanceβ the Instance ID of the event source. which specific one of them, iykyk.lengthβ Length of the event's payload data, measured in bytes.u16btw. don't forget the units, that's such a classic mistake πpayloadβ pointer to the event's payload data. it's au8 *, it points at the good stuff, that's the whole job π«Ά
ngl there are no hidden fields, no surprises β just these six. go read the header if you don't believe me π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/surface_acpi_notify.hβ go read it, it's right there, it ate π
alright bestie that's the whole page π
this lil writeup lives in ./include/linux (Kernel API Manual vibes), dated October 2026, under the very official title struct san_dgpu_event(9) β slay, go forth and read structs responsibly ππΈ
π¦ 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