scmi_get_active_handler(9)
π
scmi_get_active_handler(9) π
okay so this one comes straight from the Kernel API Manual, and it's literally a tiny helper doing active-handler business. bestie, it's giving βquick lookup, no dramaβ energy. π¦
β¨ NAME β¨
scmi_get_active_handler β Helper to get active handlers only π
πΈ SYNOPSIS πΈ
struct scmi_event_handler * scmi_get_active_handler (struct
scmi_notify_instance *ni , u32 evt_key );
π ARGUMENTS π
niβ a reference to the notification instance to use. yep, thatβs the one youβre handing over π«Άevt_keyβ the event key to use. the key key key π
π« DESCRIPTION π«
okay so it searches for the handler you want β the one matching the key β and it looks only in the per-protocol table of registered handlers. thatβs the whole search zone, bestie.
this is called only from the dispatching path, so it wants to be as quick as possible and genuinely does not care about pending. like, no cap, speed is the entire vibe here. periodt. π
β RETURN β
A properly refcounted active handler β¨ β yes, properly refcounted, we love a responsible icon π
π 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_register_event_handler(9)__scmi_event_handler_get_ops(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)
this page lives under ./drivers/firmware/arm_scmi, and itβs dated October 2026 β mwah π
π¦ 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