scmi_register_event_handler(9)
β¨ scmi_register_event_handler(9) β¨
Okay bestie, welcome to the Kernel API Manual corner of the group chat π«Ά This is the page for scmi_register_event_handler(9), and yes, itβs giving βtiny function, important jobβ energy.
πΈ NAME πΈ
scmi_register_event_handler β Register whenever possible an Event handler. Periodt.
π¦ SYNOPSIS π¦
int scmi_register_event_handler (struct scmi_notify_instance *ni ,
struct scmi_event_handler *hndl );
π ARGUMENTS π
niβ A reference to the notification instance to use.hndlβ The event handler to register.
π DESCRIPTION π
First, this function tries to bind an event handler to its associated event. Then it checks if it was at least a valid pending handler: if it was not bound nor valid, it returns false. Thatβs the whole vibe check, no cap.
Valid pending incomplete bindings get periodically retried by a dedicated worker, and that worker gets kicked each time a new protocol completes its own registration phase. Lowkey a little cleanup crew, but make it kernel. π§
π₯ CONTEXT π₯
Assumes to be called with pending_mtx acquired. Do not skip that part, bestie β this page literally assumes it, fr fr. π
π RETURN π
0 on Success. Thatβs the good ending. π
π SEE ALSO π
- Kernel file
./drivers/firmware/arm_scmi/notify.c Theory of operation(9)struct scmi_notify_instance(9)struct events_queue(9)struct scmi_event_header(9)struct scmi_registered_events_desc(9)struct scmi_registered_event(9)struct scmi_event_handler(9)scmi_lookup_and_call_event_chain(9)scmi_process_event_header(9)scmi_process_event_payload(9)scmi_events_dispatcher(9)scmi_notify(9)scmi_kfifo_free(9)scmi_initialize_events_queue(9)scmi_allocate_registered_events_desc(9)scmi_register_protocol_events(9)scmi_deregister_protocol_events(9)scmi_allocate_event_handler(9)scmi_free_event_handler(9)scmi_bind_event_handler(9)scmi_valid_pending_handler(9)__scmi_event_handler_get_ops(9)scmi_get_active_handler(9)__scmi_enable_evt(9)scmi_put_handler_unlocked(9)scmi_event_handler_enable_events(9)scmi_notifier_register(9)scmi_notifier_unregister(9)scmi_devm_notifier_register(9)scmi_devm_notifier_unregister(9)scmi_protocols_late_init(9)scmi_notification_init(9)scmi_notification_quiesce(9)scmi_notification_exit(9)
Thatβs the whole page, bestie π Source/version: ./drivers/firmware/arm_scmi Β· date: October 2026 Β· page: scmi_register_event_handler(9). Okay bye, go register that handler 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