ssam_nfblk_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ssam_nfblk_find β€” a Kernel API Manual moment πŸŽ€

okay so bestie. this is a page from the Kernel API Manual, and it's about exactly one (1) tiny little bool function that answers a very specific question. she's small, she's focused, she's iconic. let's get into it ✨


🌸 NAME 🌸

ssam_nfblk_find β€” check if a notifier block is registered on the given notifier head. list. (yes, "head. list." β€” that's literally how the original says it, i don't make the rules 🫢)


πŸ¦‹ SYNOPSIS πŸ¦‹

bool ssam_nfblk_find (struct ssam_nf_head *nh , struct ssam_notifier_block *nb );

like look at her. two args, one bool, zero drama. main character energy fr fr πŸ’œ


⭐ ARGUMENTS ⭐

  • nh β€” the notifier head you're searching on. that's the spot you're digging through, bestie πŸ”
  • nb β€” the notifier block you're looking for. the one you're tryna find in there πŸ’–

⚠️ NOTE ⚠️

okay this is the important part, don't skip it πŸ™ˆ this function must be synchronized by the caller with respect to other insert, find, and/or remove calls β€” and you do that by holding struct ssam_nf.lock. like, literally, hold the lock. no cap. if you don't, chaos, and not the cute kind πŸ’€

πŸ”’ holder of struct ssam_nf.lock or gtfo β€” the concurrency vibes are NOT optional here.

βœ… RETURN βœ…

returns true if the given notifier block is registered on the given notifier head, and false otherwise. that's it. that's the whole personality. πŸŽ€


πŸ‘‘ SEE ALSO πŸ‘‘

and now, the moment you've all been waiting for: the entire extended friend group πŸ’… this page knows literally everyone, so buckle up bestie 🌈

first up, the kernel file itself:

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

and then the whole crew, in order, exactly as they appear:

like, the way she name-drops every single one of them and still eats πŸ”₯ obsessed.


πŸŒΈπŸ’– and that's the whole page, bestie! source vibes came straight out of ./drivers/platform/surface/agg..., dated October 2026 β€” so mark your calendar, she's from the future πŸ’…βœ¨ bye ily πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from