STRUCT NOTIFICATION(9)
π struct notification(9) π
okay bestie, so this is a page from the Kernel API Manual and it's all about struct notification β the little container that holds your seccomp userspace notifications. β¨
π NAME π
struct notification β it's literally the container for seccomp userspace notifications, no cap.
so here's the vibe: most seccomp filters are never gonna have notification listeners attached to them at all, and this structure is fairly large. so instead of lugging all that around everywhere, we keep the notification-specific stuff in a separate structure. efficient queen behavior π
π¦ SYNOPSIS π¦
struct notification {
atomic_t requests;
u32 flags;
u64 next_id;
struct list_head notifications;
};
look at her. iconic. π
πΈ Members πΈ
requestsβ a semaphore that users of this notification can wait on for changes. but heads up bestie: the actual reads and writes are still controlled withfilter->notify_lock. so like, the semaphore is for waiting, the lock is for touching. don't mix them up π«Άflagsβ a set ofSECCOMP_USER_NOTIF_FD_*flags. that's the whole thing, that's the set πnext_idβ the id of the next request. yep. that's it. she's a counter β¨notificationsβ a list ofstruct seccomp_knotifelements. a little list of knotifs, living her best life π
π SEE ALSO π
Kernel file ./kernel/seccomp.c:
struct seccomp_kaddfd(9)struct action_cache(9)struct seccomp_filter(9)seccomp_check_filter(9)seccomp_cache_check_allow(9)seccomp_run_filters(9)seccomp_can_sync_threads(9)seccomp_filter_release(9)seccomp_sync_threads(9)seccomp_prepare_filter(9)seccomp_prepare_user_filter(9)seccomp_is_const_allow(9)seccomp_cache_prepare(9)seccomp_attach_filter(9)seccomp_set_mode_strict(9)seccomp_set_mode_filter(9)prctl_set_seccomp(9)
and that's the whole page, bestie π no giant scary struct, no mystery fields. go read the SEE ALSO list if you want the extended lore iykyk π§
mwah π β this one came out of ./kernel, dated October 2026, and that's the tea π
π¦ 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