ssam_nf_call(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ssam_nf_call(9) πŸ’–

okay so we're in the Kernel API Manual bestie, and this page is all about one lil function that's honestly kind of the main character of the notifier system πŸŽ€


✨ NAME ✨

ssam_nf_call β€” Call notification callbacks for the provided event.

like, it literally calls the callbacks. that's the whole vibe. no cap πŸ’…


🌸 SYNOPSIS 🌸

void ssam_nf_call (struct ssam_nf *nf , struct device *dev , u16 rqid ,
struct ssam_event *event );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • nf β€” The notifier system πŸ’œ this is the whole squad of notifiers you're rolling with.
  • dev β€” The associated device, only used for logging. yeah it's just here to make the logs look cute, it's not doing heavy lifting 🫢
  • rqid β€” The request ID of the event.
  • event β€” The event provided to the callbacks. like handing out snacks at a party πŸ“

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea β˜•: this function executes registered callbacks in order of their priority until either no callback is left, or a callback returns a value with the SSAM_NOTIF_STOP bit set. periodt.

ngl, a lil heads up: that bit is set automatically when converting non-zero error values via ssam_notifier_from_errno to notifier values. so you don't even have to do it yourself, it's giving convenience πŸ’…

✨ also note ✨ any callback that could handle an event should return a value with bit SSAM_NOTIF_HANDLED set, indicating that the event does not go unhandled/ignored. lowkey important β€” if no registered callback could handle an event, this function will emit a warning. 😭 so like, don't leave your events on read.

And in case a callback failed, this function will emit an error message. bestie, if you see that, something went wrong fr fr πŸ’€


🌈 SEE ALSO 🌈

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

and the whole extended friend group πŸ’–:


k that's the whole page bestie, go forth and call your callbacks responsibly πŸ’œ

this lil masterpiece came from ./drivers/platform/surface/agg... and it's dated October 2026 β€” yes, future vibes only βœ¨πŸ¦‹ see u in the next manpage, mwah πŸ’‹
πŸ“¦ where this page comes from