scmi_allocat..._events_desc(9)
πΈ NAME πΈ
scmi_allocate_registered_events_desc β allocate a registered events' descriptor, bestie π
Hey bestie π welcome to scmi_allocat..._events_desc(9) from the Kernel API Manual. This page is all about allocating a registered events' descriptor, and we're gonna keep every detail cute but correct. No cap. β¨
β¨ SYNOPSIS β¨
The whole signature, untouched:
struct scmi_registered_events_desc *
scmi_allocate_registered_events_desc (struct scmi_notify_instance *ni ,
u8 proto_id , size_t queue_sz , size_t eh_sz , int num_events , const
struct scmi_event_ops *ops );
π ARGUMENTS π
niβ A reference to thestruct scmi_notify_instancenotification instance to use π«Άproto_idβ Protocol ID π·οΈqueue_szβ Size of the associated queue to allocate π¦eh_szβ Size of the event header scratch area to pre-allocate π§num_eventsβ Number of events to support (size ofregistered_events) π’opsβ Pointer to a struct holding references to protocol specific helpers needed during events handling π οΈ
π DESCRIPTION π
This one is supposed to be called only once for each protocol, at protocol initialization time. So if the requested protocol is found already registered, it warns. β οΈ
π₯ RETURN π₯
On Success, you get the allocated and registered descriptor back. β
π¦ SEE ALSO π¦
Go read these too, bestie:
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_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_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)
mwah π β this page is from ./drivers/firmware/arm_scmi, dated October 2026, and it's the scmi_allocat..._events_desc(9) manual. π
π¦ 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