STRUCT REGISTERED_EVENT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 is u64. the upper u32 is the Node-Id and the lower u32 is 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, like PM_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 β€” the hlist_node that 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:


πŸ’€ real talk: key packing is Node-Id in the upper u32 and Event-Id in the lower u32 β€” 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