ssam_nfblk_call_chain(9)
π 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 π
ssh_seq_reset(9)ssh_seq_next(9)ssh_rqid_reset(9)ssh_rqid_next(9)ssam_event_matches_notifier(9)ssam_nfblk_insert(9)ssam_nfblk_find(9)ssam_nfblk_remove(9)ssam_nf_head_init(9)ssam_nf_head_destroy(9)struct ssam_nf_refcount_key(9)struct ssam_nf_refcount_entry(9)ssam_nf_refcount_inc(9)ssam_nf_refcount_dec(9)ssam_nf_refcount_dec_free(9)ssam_nf_refcount_empty(9)ssam_nf_call(9)ssam_nf_init(9)ssam_nf_destroy(9)ssam_event_item_cache_init(9)ssam_event_item_cache_destroy(9)ssam_event_item_free(9)ssam_event_item_alloc(9)ssam_event_queue_push(9)ssam_event_queue_pop(9)ssam_event_queue_is_empty(9)ssam_cplt_get_event_queue(9)ssam_cplt_submit(9)ssam_cplt_submit_event(9)ssam_cplt_flush(9)ssam_event_queue_init(9)ssam_cplt_init(9)ssam_cplt_destroy(9)ssam_controller_device(9)ssam_controller_get(9)ssam_controller_put(9)ssam_controller_statelock(9)ssam_controller_stateunlock(9)ssam_controller_lock(9)ssam_controller_caps_load_from_acpi(9)ssam_controller_caps_load_from_of(9)ssam_controller_caps_load(9)ssam_controller_init(9)ssam_controller_start(9)ssam_controller_shutdown(9)ssam_controller_destroy(9)ssam_controller_suspend(9)ssam_controller_resume(9)ssam_request_write_data(9)ssam_request_sync_alloc(9)ssam_request_sync_free(9)ssam_request_sync_init(9)ssam_request_sync_submit(9)ssam_request_do_sync(9)ssam_request_do_sync_with_buffer(9)struct ssh_notification_params(9)ssam_ssh_event_enable(9)ssam_ssh_event_disable(9)ssam_get_firmware_version(9)ssam_ctrl_notif_display_off(9)ssam_ctrl_notif_display_on(9)ssam_ctrl_notif_d0_exit(9)ssam_ctrl_notif_d0_entry(9)ssam_nf_refcount_enable(9)ssam_nf_refcount_disable_free(9)ssam_notifier_register(9)__ssam_notifier_unregister(9)ssam_controller_event_enable(9)ssam_controller_event_disable(9)ssam_notifier_disable_registered(9)ssam_notifier_restore_registered(9)ssam_notifier_is_empty(9)ssam_notifier_unregister_all(9)ssam_irq_setup(9)ssam_irq_free(9)ssam_irq_arm_for_wakeup(9)ssam_irq_disarm_wakeup(9)
π 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
- 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