console_srcu_read_unlock(9)
π console_srcu_read_unlock(9)
okay bestie, welcome to the Kernel API Manual β yes this is that kernel, the printk one, and yes we're about to make SRCU console stuff make sense. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
console_srcu_read_unlock β unregister an old reader from the SRCU-protected console list πΈ
like, you were reading the console list under SRCU protection, and now you're done, so you clock out. iconic behavior honestly π
π¦ SYNOPSIS π¦
void console_srcu_read_unlock (int cookie );
that's it, that's the whole signature. no cap β¨
π ARGUMENTS π
cookieβ the cookie that got returned to you fromconsole_srcu_read_lockπ like, the little receipt you got when you walked in. bring it back on your way out, that's the whole vibe.
π DESCRIPTION π
it's the counterpart to console_srcu_read_lock π§
literally just that. you locked, you read, now you unlock. matching set, two halves of one whole, the way that it should be ππ
π₯ SEE ALSO π₯
bestie there are so many friends in this group chat, buckle up π
Kernel file ./kernel/printk/printk.c:
console_list_lock(9)console_list_unlock(9)console_srcu_read_lock(9)console_lock_spinning_enable(9)console_lock_spinning_disable_and_check(9)console_trylock_spinning(9)printk_parse_prefix(9)add_preferred_console(9)match_devname_and_update_preferred_console(9)console_suspend_all(9)console_cpu_notify(9)console_lock(9)console_trylock(9)console_unlock(9)console_flush_on_panic(9)printk_kthreads_shutdown(9)console_force_preferred_locked(9)pr_flush(9)wake_up_klogd(9)defer_console_output(9)printk_trigger_flush(9)printk_timed_ratelimit(9)kmsg_dump_register(9)kmsg_dump_unregister(9)kmsg_dump_desc(9)kmsg_dump_get_line(9)kmsg_dump_get_buffer(9)kmsg_dump_rewind(9)console_try_replay_all(9)__printk_cpu_sync_wait(9)__printk_cpu_sync_try_get(9)__printk_cpu_sync_put(9)
like a whole friend group fr fr ππ
and that's the whole page, you ate that π this masterpiece lives in ./kernel/printk, dated October 2026, and it's filed under console_srcu_read_unlock(9) β mwah, see you in the next one πβ
π¦ 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