trace_user_fault_put(9)
π 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β thetinfothat was passed totrace_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:
trace_array_put(9)tracing_is_enabled(9)tracing_on(9)tracing_snapshot(9)tracing_alloc_snapshot(9)tracer_tracing_disable(9)tracer_tracing_enable(9)tracing_off(9)tracer_tracing_is_on(9)tracing_is_on(9)register_tracer(9)tracing_start(9)tracing_stop(9)trace_buffered_event_enable(9)trace_buffered_event_disable(9)trace_dump_stack(9)ignore_event(9)trace_adjust_address(9)tracing_update_buffers(9)trace_user_fault_destroy(9)trace_user_fault_init(9)trace_user_fault_get(9)trace_user_fault_read(9)err_pos(9)tracing_log_err(9)trace_array_get_by_name(9)tracing_init_dentry(9)
ngl the wholetrace_user_fault_*squad is basically a get/put situation β yougetit, youputit 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
- 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