trace_array_put(9)
π trace_array_put(9) β the kernel API manual, but make it make sense
okay so welcome to the Kernel API Manual, bestie, and today's main character is trace_array_put(9). literally the "i'm done here, you can let go now" function for trace arrays. short page, big vibes π
β¨ NAME β¨
trace_array_put β decrement the reference counter for this trace array. that's it. that's the whole job. she's a one-trick pony and she ATE π¦
β¨ SYNOPSIS β¨
void trace_array_put (struct trace_array *this_tr );
no return value, no drama, just vibes and a void. π
β¨ ARGUMENTS β¨
this_trβ pointer to the trace array π«Ά like, the actual trace array you're releasing. hand her over.
β¨ NOTE β¨
okay this part matters, so listen up: use this when you no longer need the trace array that trace_array_get_by_name handed you. that's the whole assignment. this is how you tell the kernel "bestie i'm done holding this" so the trace array can later be destroyed. if you don't do it, she can't be freed. no cap. π
lowkey this is the reference-counting equivalent of returning your friend's hoodie. you borrowed it, you give it back, the wardrobe stays functional. π
β¨ SEE ALSO β¨
the whole friend group, in the original order, no one left out π β kernel file ./kernel/trace/trace.c:
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_put(9)trace_user_fault_read(9)err_pos(9)tracing_log_err(9)trace_array_get_by_name(9)tracing_init_dentry(9)
and that's the page!! π ok bye, mwah β crucially, this little angel lives in ./kernel/trace, and this edition is dated October 2026, filed right back under trace_array_put(9). slay π
β¨πΈ
π¦ 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