ssam_nfblk_call_chain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ssam_nfblk_call_chain β€” the kernel API manual page, but make it make sense

okay so bestie, welcome to ssam_nfblk_call_chain(9) from the Kernel API Manual ✨ this is the notifier-chain girlie and she is so important, so let's get into it.


🌸 NAME

ssam_nfblk_call_chain β€” call event notifier callbacks of the given chain. that's it. that's the job. she calls the callbacks, no cap πŸ’…


✨ SYNOPSIS

int ssam_nfblk_call_chain (struct ssam_nf_head *nh , struct ssam_event *event );

like, she takes two things and gives you back an int. iconic behavior honestly 🫢


πŸŽ€ ARGUMENTS

  • nh β€” the notifier head for which the notifier callbacks should be called. so this is the chain you're about to ring up πŸ“ž
  • event β€” the event data provided to the callbacks. this is the little care package every callback gets handed 🎁

πŸ¦‹ DESCRIPTION

Call all registered notifier callbacks in order of their priority until either no notifier is left or a notifier returns a value with the SSAM_NOTIF_STOP bit set. sooo it's a priority-ordered roll call and the first one to hit STOP shuts the whole thing down, periodt.

⚠️ note that this bit is automatically set via ssam_notifier_from_errno on any non-zero error value. so like, an error basically slams the brakes for you, no extra work required 😭

πŸ’– RETURN

Returns the notifier status value, which contains the notifier status bits (SSAM_NOTIF_HANDLED and SSAM_NOTIF_STOP) as well as a potential error value returned from the last executed notifier callback.

so it's a little combo platter, bestie πŸ“ if you actually want the raw error back, use ssam_notifier_to_errno to convert this value to the original error value. iykyk πŸ’…


🌈 SEE ALSO

first up, the source file herself:

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

and now the extended friend group, literally all of them, in order πŸ‘‘


πŸ’€ yes that's genuinely the whole list, i counted, every single one is here, don't come for me

and that's the page, bestie 🧚 this one shipped out of ./drivers/platform/surface/agg... in October 2026 β€” mwah, slay, go call your callbacks in priority order πŸ’œ

πŸ“¦ where this page comes from