STRUCT SCMI_EVENT_OPS(9)
π struct scmi_event_ops(9)
okay so this is from the Kernel API Manual bestie, and it's literally the struct scmi_event_ops page β aka the protocol helpers that the notification core calls up when it needs something. no cap, this is the group chat between SCMI protocols and the notify core π«Ά
β¨ NAME β¨
struct scmi_event_ops β the protocol helper crew that the notification core rings up whenever it needs a favor. literally their whole job π
πΈ SYNOPSIS πΈ
struct scmi_event_ops {
bool (*is_notify_supported)(const struct scmi_protocol_handle *ph,
u8 evt_id, u32 src_id);
int (*get_num_sources)(const struct scmi_protocol_handle *ph);
int (*set_notify_enabled)(const struct scmi_protocol_handle *ph, u8
evt_id, u32 src_id, bool enabled);
void *(*fill_custom_report)(const struct scmi_protocol_handle *ph,
u8 evt_id, ktime_t timestamp, const void *payld, size_t payld_sz, void
*report, u32 *src_id);
};
like, that's the whole squad right there π four function pointers, all main character energy.
π Members π
is_notify_supportedβ returns0if the notification you asked about for that specific resource (src_id) is supported. short king, one job, does it well β¨get_num_sourcesβ hands back the number of possible event sources for this protocol. it's giving census-taker energy π¦set_notify_enabledβ turns the requiredevt_id/src_idnotifications on or off, using the proper custom protocol commands (no shortcuts bestie, do it the right way). returns0on Success πfill_custom_reportβ fills in a custom event report from the event messagepayldyou handed it, identifying the event-specificsrc_id. returnsNULLon failure, otherwise the report comes back fully populated and slayed π
π Context π
the helpers described in struct scmi_event_ops are called only in process context. that's the vibe check β no weird contexts allowed π§
β SEE ALSO β
- Kernel file
./drivers/firmware/arm_scmi/notify.h struct scmi_event(9)struct scmi_protocol_events(9)
go read those two structs next fr fr, they're the friends of this one π
okay that's the whole page bestie, hope it ate π this came out of ./drivers/firmware/arm_scmi, dated October 2026, and it's titled struct scmi_event_ops(9) β periodt π
π¦ 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