ssam_notifier_from_errno(9)
πΈ ssam_notifier_from_errno β a Kernel API Manual moment π
okay bestie, gather round, because today we're reading ssam_notifier_from_errno from the Kernel API Manual, and honestly? it's a tiny little glow-up function and I'm obsessed π«Ά
β¨ NAME β¨
ssam_notifier_from_errno β literally converts a standard error value into a notifier return code. that's it. that's the whole vibe. π
π SYNOPSIS π
u32 ssam_notifier_from_errno (int err );
π ARGUMENTS π
errβ the error code you're converting, and listen, it has rules: it must be negative (that's the failure case, boo π) or zero (success, slay β¨). no cap, those are the only two moods allowed.
π RETURN π
so it hands back the notifier return value you get by converting that err value you gave it π
and here's the important part, bestie: if err is negative, the SSAM_NOTIF_STOP flag gets set, which makes the notifier call chain traversal abort. like, full stop, the chain just gives up and goes home π iconic behaviour honestly.
π¦ SEE ALSO π¦
a whole friend group, fr fr β the kernel file ./include/linux/surface_aggregator/controller.h plus:
enum ssam_event_flags(9)struct ssam_event(9)enum ssam_request_flags(9)struct ssam_request(9)struct ssam_response(9)struct ssam_request_sync(9)ssam_request_sync_set_data(9)ssam_request_sync_set_resp(9)ssam_request_sync_wait(9)ssam_request_do_sync_onstack(9)__ssam_retry(9)ssam_retry(9)struct ssam_request_spec(9)struct ssam_request_spec_md(9)SSAM_DEFINE_SYNC_REQUEST_N(9)SSAM_DEFINE_SYNC_REQUEST_W(9)SSAM_DEFINE_SYNC_REQUEST_R(9)SSAM_DEFINE_SYNC_REQUEST_WR(9)SSAM_DEFINE_SYNC_REQUEST_MD_N(9)SSAM_DEFINE_SYNC_REQUEST_MD_W(9)SSAM_DEFINE_SYNC_REQUEST_MD_R(9)SSAM_DEFINE_SYNC_REQUEST_MD_WR(9)enum ssam_notif_flags(9)struct ssam_notifier_block(9)ssam_notifier_to_errno(9)struct ssam_event_registry(9)struct ssam_event_id(9)enum ssam_event_mask(9)SSAM_EVENT_REGISTRY(9)enum ssam_event_notifier_flags(9)struct ssam_event_notifier(9)ssam_notifier_unregister(9)
like I said. whole squad. iykyk π§
lowkey a reminder:errnegative = failure +SSAM_NOTIF_STOPset + chain traversal aborts.errzero = success. don't come at me with a positive number, it's not that kind of function π
and that's the page, bestie π source/version is ./include/linux/surface_aggreg... and the date on this baby is October 2026 β mwah, stan the Kernel API Manual, 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