nbcon_device_try_acquire(9)
β¨ NAME β¨
okay bestie, welcome to the Kernel API Manual page for nbcon_device_try_acquire(9) β it's giving try to acquire nbcon console and enter unsafe section energy π
nbcon_device_try_acquire β Try to acquire nbcon console and enter unsafe section. π
π SYNOPSIS π
bool nbcon_device_try_acquire (struct console *con );
π«Ά ARGUMENTS π«Ά
conβ The nbcon console to acquire. π¦
π CONTEXT π
This one happens under the locking mechanism implemented in con->device_lock, including disabling migration. Lock vibe check respected, no cap. π₯
π― RETURN π―
True if the console was acquired. False otherwise. Simple as that, bestie. π
π DESCRIPTION π
okay so console drivers will usually use their own internal synchronization mechanism to synchronize between console printing and non-printing activities (such as setting baud rates). That's their normal era. πΈ
However, nbcon console drivers supporting atomic consoles may also want to mark unsafe sections when performing non-printing activities in order to synchronize against their atomic_write callback. It's giving βwe need a little unsafe-section momentβ energy, and honestly? Iconic. β¨
This function acquires the nbcon console using priority NBCON_PRIO_NORMAL and marks it unsafe for handover/takeover. Periodt. π
π SEE ALSO π
The whole crew, in the original order:
- Kernel file
./kernel/printk/nbcon.c nbcon_state_set(9)nbcon_state_read(9)nbcon_state_try_cmpxchg(9)nbcon_seq_read(9)nbcon_seq_force(9)nbcon_seq_try_update(9)nbcon_context_try_acquire_direct(9)nbcon_context_try_acquire_requested(9)nbcon_context_try_acquire_handover(9)nbcon_context_try_acquire_hostile(9)nbcon_context_try_acquire(9)nbcon_context_release(9)nbcon_context_can_proceed(9)nbcon_can_proceed(9)__nbcon_context_update_unsafe(9)nbcon_enter_unsafe(9)nbcon_exit_unsafe(9)nbcon_reacquire_nobuf(9)nbcon_emit_next_record(9)nbcon_kthread_should_wakeup(9)nbcon_kthread_func(9)nbcon_irq_work(9)nbcon_kthreads_wake(9)nbcon_kthread_create(9)nbcon_get_cpu_emergency_nesting(9)nbcon_get_default_prio(9)nbcon_allow_unsafe_takeover(9)nbcon_legacy_emit_next_record(9)__nbcon_atomic_flush_pending_con(9)nbcon_atomic_flush_pending_con(9)__nbcon_atomic_flush_pending(9)nbcon_atomic_flush_pending(9)nbcon_atomic_flush_unsafe(9)nbcon_cpu_emergency_enter(9)nbcon_cpu_emergency_exit(9)nbcon_alloc(9)nbcon_free(9)nbcon_device_release(9)nbcon_kdb_try_acquire(9)nbcon_kdb_release(9)nbcon_write_context_is_braille(9)nbcon_braille_try_acquire(9)nbcon_braille_release(9)
okay that's the whole nbcon_device_try_acquire(9) page, mwah π β the source/version corner is ./kernel/printk, dated October 2026, catch u later bestie π«Ά
π¦ 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