STRUCT REGISTERED_EVENT_DATA(9)
π struct registered_event_data π
okay bestie, this is the struct registered_event_data page from the Kernel API Manual, and we're gonna get you so comfy with it. it's genuinely not scary, i promise π«Ά
β¨ NAME β¨
struct registered_event_data β literally just "Registered Event Data." that's the whole name, and honestly? iconic of it to be that direct π
πΈ SYNOPSIS πΈ
here's the whole struct, exactly as it lives, no cap:
struct registered_event_data {
u64 key;
enum pm_api_cb_id cb_type;
bool wake;
struct list_head cb_list_head;
struct hlist_node hentry;
};
look at her. five fields. perfectly balanced. main character energy π
π¦ Members π¦
okay so let's meet the squad, one field at a time π
keyβ so this is the combine id(Node-Id | Event-Id), and its type isu64. the upperu32is the Node-Id and the loweru32is the Event-Id β that's the split, don't mix 'em up π. and this little thing gets used as the key to index into the hashmap. she's the lookup girly β¨cb_typeβ the type of Api callback, likePM_NOTIFY_CB, etc. so basically "which flavour of callback are we dealing with" πwakeβ if this flag is set, the firmware will wake up the processor if it's in sleep or power down state. she's the alarm clock β°π₯ set it and the processor will be summoned, fr fr.cb_list_headβ head of the call back data list, which contains the information about the registered handler and private data. think of it as the clipboard holding everyone's details ππhentryβ thehlist_nodethat hooks this entry into the hashtable. she's the little hook that keeps everything chained together πͺ lowkey essential.
π SEE ALSO π
go look at the kernel file ./drivers/soc/xilinx/xlnx_event_manager.c, plus these besties:
struct agent_cb(9)xlnx_register_event(9)xlnx_unregister_event(9)
π real talk:keypacking isNode-Idin the upperu32andEvent-Idin the loweru32β that's just how it is on this page, bestie. don't be out here inventing your own layout, i'm begging π
and that's the whole vibe check, you ate that πβ¨ this page lives in ./drivers/soc/xilinx, dated October 2026 β mwah, go forth and slay your hashmaps ππ
π§
π¦ 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