hash_sub(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ hash_sub(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to hash_sub(9) β€” yes that's the hash_sub man page from the Kernel API Manual, and yes we're gonna get through it together πŸ’…


✨ NAME ✨

hash_sub β€” substracts @b from @a and returns the result πŸŽ€

that's it. that's the whole name section. she's short, she's sweet, she's an icon.


🌸 SYNOPSIS 🌸

struct ftrace_hash * hash_sub (struct ftrace_hash *a , struct ftrace_hash *b );

literally just look at her. two struct ftrace_hash pointers walk in, one struct ftrace_hash pointer (hopefully) walks out. main character energy fr fr 🫢


πŸ’– ARGUMENTS πŸ’–

  • a β€” a struct ftrace_hash object. the one being subtracted from, iykyk πŸ‘‘
  • b β€” a struct ftrace_hash object. the one doing the subtracting 🌈

πŸ”₯ DESCRIPTION πŸ”₯

so what actually happens? it returns a struct ftrace_hash object on success, and NULL on error. that's the whole vibe check β€” success gets you a shiny hash object, error gets you NULL and honestly? same. 😭

no cap, that's every single thing this page tells us about behavior. don't come for me, I'm just the messenger πŸ’€


⭐ SEE ALSO ⭐

okay this is the part where the page pops OFF β€” look at this lineup, it's giving guest list at the most exclusive function ever πŸŽ€

lives in the kernel file ./kernel/trace/ftrace.c, and hangs out with:

like?? forty-something cross-references?? she said "I know everybody and everybody knows me" πŸ’…βœ¨


friendly reminder bestie: I did not invent a single one of these, they're all straight off the page β€” go read the actual ones if you need the real tea πŸ“

🧚 cute lil sign-off 🧚

and that's the whole page, bestie! sourced from ./kernel/trace, dated October 2026, and filed under hash_sub(9) β€” go forth and subtract hashes responsibly πŸ’œπŸ¦‹

πŸ“¦ where this page comes from