ring_buffer...d_enable_cpu(9)
π ring_buffer_record_enable_cpu β Kernel API Manual β¨
okay so bestie, welcome to the page for ring_buffer_record_enable_cpu(9). yes that's the whole name, it's long, it's giving "my parents gave me a full government name" energy, but we move. this is the Kernel API Manual page, and honestly? it's a short one. lowkey iconic of it.
πΈ NAME πΈ
ring_buffer_record_enable_cpu β enable writes to the buffer
that's it. that's the job. it turns the writing back ON for one little CPU. slay.
π¦ SYNOPSIS π¦
void ring_buffer_record_enable_cpu (struct trace_buffer *buffer , int cpu );
yes she's void, she returns nothing, she's not here to give you feedback, she's here to do the thing. main character energy fr fr.
π ARGUMENTS π
so there's two of them, and no there is no third one, don't come for me:
bufferβ the ring buffer you wanna enable writes on. that's your girl. you're giving her permission to be written to again πcpuβ the CPU to enable. just the one. one CPU. specifically that one. not all of them, don't be greedy π
β DESCRIPTION β
okay this is the important bit so listen up. multiple disables will need the same number of enables to truly enable the writing (much like preempt_disable).
read that again, bestie. it's a counter situation, not a light switch. if you disabled three times, you gotta enable three times to actually get writing back. it's not one-and-done. it's giving β¨ commitment β¨. and yeah, the manpage literally compares it to preempt_disable β that's the vibe, that's the reference, iykyk π
so likeβ¦ if you're sitting there wondering "why is my buffer still not recording, i literally called enable" β did you disable it more than once? bestie. count. π₯
π SEE ALSO π
okay this is the part where the page justβ¦ goes off. it's a whole friend group, a whole group chat, everyone's invited. bring snacks π
kernel file ./kernel/trace/ring_buffer.c β and then, in order, because i'm not about to rearrange her:
ring_buffer_event_length(9)ring_buffer_event_data(9)rb_page_capacity(9)rb_subbuf_capacity(9)rb_subbuf_max_data_size(9)rb_subbuf_start(9)ring_buffer_event_time_stamp(9)ring_buffer_nr_dirty_pages(9)ring_buffer_wake_waiters(9)ring_buffer_wait(9)ring_buffer_poll_wait(9)rb_check_pages(9)rb_validate_buffer(9)__ring_buffer_alloc(9)__ring_buffer_alloc_range(9)__ring_buffer_alloc_remote(9)ring_buffer_free(9)ring_buffer_resize(9)rb_update_event(9)ring_buffer_nest_start(9)ring_buffer_nest_end(9)ring_buffer_unlock_commit(9)ring_buffer_lock_reserve(9)ring_buffer_discard_commit(9)ring_buffer_write(9)ring_buffer_record_disable(9)ring_buffer_record_enable(9)ring_buffer_record_off(9)ring_buffer_record_on(9)ring_buffer_record_is_on(9)ring_buffer_record_is_set_on(9)ring_buffer_record_is_on_cpu(9)ring_buffer_record_disable_cpu(9)ring_buffer_oldest_event_ts(9)ring_buffer_bytes_cpu(9)ring_buffer_entries_cpu(9)ring_buffer_overrun_cpu(9)ring_buffer_commit_overrun_cpu(9)ring_buffer_dropped_events_cpu(9)ring_buffer_read_events_cpu(9)ring_buffer_entries(9)ring_buffer_overruns(9)ring_buffer_iter_reset(9)ring_buffer_iter_empty(9)ring_buffer_peek(9)ring_buffer_iter_peek(9)ring_buffer_consume(9)ring_buffer_read_start(9)ring_buffer_read_finish(9)ring_buffer_iter_advance(9)ring_buffer_size(9)ring_buffer_max_event_size(9)ring_buffer_reset_cpu(9)ring_buffer_reset_online_cpus(9)ring_buffer_reset(9)ring_buffer_empty(9)ring_buffer_empty_cpu(9)ring_buffer_swap_cpu(9)ring_buffer_alloc_read_page(9)ring_buffer_free_read_page(9)ring_buffer_read_page(9)ring_buffer_read_page_data(9)ring_buffer_read_page_size(9)ring_buffer_subbuf_size_get(9)ring_buffer_subbuf_order_get(9)ring_buffer_subbuf_order_set(9)
like i said. everyone is here. it's a reunion π«Ά
and that's the whole page!! short, sweet, and yes, you do have to match your enables to your disables. no cap. π
sign-off time: this little masterpiece lives in <purple>./kernel/trace</purple>, it's dated October 2026, and its version-y header vibe is <lavender>ring_buffer...d_enable_cpu(9)</lavender> β yes they truncated the name in the footer, she's mysterious like that π. bye bestie, go enable some writes πβ¨π
π¦ 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