trace_user_fault_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… trace_user_fault_put(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this page is trace_user_fault_put(9) and it's lowkey a tiny little function but she's important, so let's get into it 🫢


✨ NAME ✨

trace_user_fault_put β€” dereference a per cpu trace buffer πŸŽ€

✨ SYNOPSIS ✨

int trace_user_fault_put (struct trace_user_buf_info *tinfo );

✨ ARGUMENTS ✨

  • tinfo β€” the tinfo that was passed to trace_user_fault_get. yeah, that exact one, no substitutions bestie πŸ™ˆ

✨ DESCRIPTION ✨

so what she does is: decrement the ref count of tinfo. that's it. that's the whole job. iconique, no notes πŸ’…

and then she gives you back the new refcount (negative on error 😭 β€” so if you get a negative number back, that's your vibe check failing, not a flex).

✨ SEE ALSO ✨

Kernel file ./kernel/trace/trace.c β€” and the whole friend group:


ngl the whole trace_user_fault_* squad is basically a get/put situation β€” you get it, you put it back, and the refcount stays happy. don't leave her hanging, fr fr πŸ’€

okay that's the page!! this lil gem lives in ./kernel/trace, she's stamped October 2026, and that's the whole Kernel API Manual moment β€” mwah, slay, go decrement something responsibly πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from