nbcon_get_default_prio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nbcon_get_default_prio(9) ✨

okay so this is a page from the Kernel API Manual and honestly? it's a little baddie. let's get into it πŸ’…


🌸 NAME 🌸

nbcon_get_default_prio β€” literally just tells you the appropriate nbcon priority to use for nbcon printing on the current CPU. that's the whole vibe. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

enum nbcon_prio nbcon_get_default_prio (void );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • void β€” no arguments bestie. she takes nothing. zero. nada. she's low maintenance like that πŸ™ˆ

πŸ’– CONTEXT πŸ’–

Any context. fr fr, any. she does not care where you call her from πŸ‘‘


⭐ RETURN ⭐

the nbcon_prio to use for acquiring an nbcon console in this context for printing. that's the answer, that's the icon, that's the main character ✨


🌈 DESCRIPTION 🌈

so the way that this function is safe for reading per-CPU data in any context? iconic behavior honestly. and why is she safe? because preemption is disabled if the current CPU is in the emergency or panic state. that's the whole reason, and it's giving bulletproof 🫢


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./kernel/printk/nbcon.c and like... her entire friend group. seriously, big squad energy:

like I said. huge friend group. go say hi 🧚


and that's the page!! sourced from ./kernel/printk, dated October 2026, and yes she's still nbcon_get_default_prio(9) β€” periodt πŸ’œπŸ“

πŸ“¦ where this page comes from