ssam_ctrl_notif_d0_entry(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ ssam_ctrl_notif_d0_entry โœจ

okay so bestie, welcome to the Kernel API Manual ๐ŸŽ€ โ€” this one's a lil deep-cut from the Surface aggregator world, and yes it's a (9) page, so grab a strawberry drink and let's go ๐Ÿ“


๐ŸŒธ NAME ๐ŸŒธ

ssam_ctrl_notif_d0_entry โ€” the function that's literally just telling the EC "hey girl, we're back, we're in D0 now" ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

int ssam_ctrl_notif_d0_entry (struct ssam_controller *ctrl );

๐Ÿ’œ ARGUMENTS ๐Ÿ’œ

  • ctrl โ€” the controller. the one and only. your main character controller ๐Ÿ‘‘

๐Ÿ”ฅ DESCRIPTION ๐Ÿ”ฅ

so what this does is it notifies the EC that the driver has exited a lower-power state and has entered the D0 power state. like a "we're so back" text to the embedded controller ๐Ÿซถ

and okay, being so fr fr right now: the exact effects of this function related to the EC are currently unknown. nobody's out here documenting the vibe. it's giving mystery. ๐Ÿ”ฎ

the way this works is โ€” this function will only send the D0-entry notification command if D0-state notifications are supported by the EC. so if the EC isn't about that life, nothing gets sent. and heads up: only newer Surface generations support these notifications ๐Ÿ’€ older ones are just not in the group chat.

for more details, go see ssam_ctrl_notif_d0_exit โ€” that's the sister function, iykyk ๐ŸŒˆ


โญ RETURN โญ

here's the vibe check on what you get back:

  • returns zero on success โ€” or also if no request has been executed at all (nothing to do, no notes)
  • the status of the executed SAM request if that request failed ๐Ÿ˜ญ
  • or -EPROTO if an unexpected response has been received ๐Ÿ™ˆ

๐Ÿงš SEE ALSO ๐Ÿงš

the kernel file in question, iconic:

  • ./drivers/platform/surface/aggregator/controller.c

and the whole extended fam, no cap, every single one:


ok and before you close the tab โ€” small note on how this doc came to be: it's sourced from ./drivers/platform/surface/agg..., from October 2026. mark it in your calendar bestie ๐Ÿ“…โœจ

slay, go notify that EC. you ate ๐Ÿ’…๐Ÿ‘‘๐ŸŒธ

๐Ÿ“ฆ where this page comes from