console_forc...erred_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… console_force_preferred_locked(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, welcome to the glow-up edition of the console_forc...erred_locked(9) page from the Kernel API Manual ✨ this is a lil function that lets you force a registered console to be the preferred one, and honestly? it's giving main character energy for your console list. let's get into it πŸŽ€


🌸 NAME

console_force_preferred_locked β€” force a registered console preferred πŸ‘‘


✨ SYNOPSIS

void console_force_preferred_locked (struct console *con );

that's it, that's the whole signature, no cap πŸ’…


πŸ¦‹ ARGUMENTS

  • con β€” the registered console you wanna force preferred. it's already registered, okay? we're not out here registering anything, just picking a favorite 🫢

πŸ”₯ DESCRIPTION

⚠️ Must be called under console_list_lock.

like, literally mandatory. you gotta be holding console_list_lock when you call this, no exceptions, periodt. don't just vibe in there unlocked, that's how you get crashes and we are NOT about that life πŸ˜­πŸ”’


πŸ’– SEE ALSO

okay this is the part where I list every single friend in the printk group chat, and there are a LOT, so buckle up babes 🌈

like I said β€” the whole friend group, every single one, accounted for πŸ‘‘βœ¨


and that's the page, bestie! this lil rewrite comes to you from ./kernel/printk, dated October 2026, and yes the original title is still console_forc...erred_locked(9) β€” truncated and all, we respect the aesthetic πŸ’…πŸ’œ

πŸ“¦ where this page comes from