xlnx_register_event(9)
π xlnx_register_event(9) β like, the Kernel API Manual's own glow-up edition π
okay bestie, sit down, hydrate, and let me tell you about xlnx_register_event β she's a kernel function, she lives in section 9 of the Kernel API Manual, and her whole entire job is registering you for an event. that's it, that's the vibe. she's the "hey bestie, ping me when this happens" of the Xilinx event manager world πβ¨
β¨ NAME β¨
xlnx_register_event β no cap, this one literally just registers you for the event π
πΈ SYNOPSIS πΈ
int xlnx_register_event (const enum pm_api_cb_id cb_type , const u32
node_id , const u32 event , const bool wake , event_cb_func_t cb_fun ,
void *data );
it returns an int, she takes six whole arguments, and yes she's built like that π«Ά
π ARGUMENTS π
okay so here's the roster, and every single one of them matters, no skipping:
cb_typeβ the type of callback, and it comes frompm_api_cb_idπ specifically:PM_NOTIFY_CBis for Error Events, andPM_INIT_SUSPEND_CBis for the suspend callback. pick your fighter wisely.node_idβ the Node-Id that's related to the event. it's giving "which node are we even talking about" energy πeventβ the Event Mask, but for the Error Event specifically. yes, a mask. yes, it masks. iconic πwakeβ a flag that says whether the subsystem should be woken up when the event notification comes through. so like, do we let them sleep or do we shake them awake π΄β‘οΈπ³cb_funβ a function pointer that stores the callback function. this is where your actual "what do I do when it fires" logic lives π§dataβ a pointer for the driver instance. your little bag of goodies, carried along for the ride π
β RETURN β
returns 0 on successful registration, otherwise you get an error code. zero means slay, anything else means go read the code and cry a little ππ
π¦ SEE ALSO π¦
- Kernel file
./drivers/soc/xilinx/xlnx_event_manager.c struct agent_cb(9)struct registered_event_data(9)xlnx_unregister_event(9)β yes bestie, there's an unregister, because what goes up must come down π
lowkey reminder: register responsibly, and don't forget the unregister exists π
this has been your girl in ./drivers/soc/xilinx, dated October 2026, from the Kernel API Manual (section 9). mwah, go forth and register those events πβ¨π
π¦ 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