__vc_resize(9)
π
__vc_resize(9) β like, the VT glow-up page π
okay so real talk, we're in the Kernel API Manual today bestie, and the star of the show is __vc_resize(9). buckle up, she's a resize function and she ATE π
β¨ NAME β¨
__vc_resize β resize a VT π₯οΈβ¨
π¦ SYNOPSIS π¦
int __vc_resize (struct vc_data *vc , unsigned int cols , unsigned int
rows , bool from_user );
literally just four args, no cap. look at her go πΈ
π ARGUMENTS π
vcβ the virtual console in question π₯οΈ like, which one are we resizing, bestiecolsβ columns πrowsβ rows πfrom_userβ invoked by a user? π (yes/no tea,boolstyle)
π DESCRIPTION π
so the vibe here is: resize a virtual console as seen from the console end of things. we're not out here doing our own thing β nope, we use the common vc_do_resize method to update the structures. teamwork makes the dream work fr fr π«Άβ¨
Locking π: the caller must hold the console sem to protect console internals and vc->port.tty. not optional, not a suggestion, not "oops I forgot" energy. hold the sem or don't come to the party π
π SEE ALSO π
kernel file ./drivers/tty/vt/vt.c, plus the whole squad: vc_font_pitch(9), vc_font_size(9), vc_do_resize(9), vt_resize(9), enum vc_ctl_state(9), vc_sanitize_unicode(9), vc_translate_unicode(9), vt_kmsg_redirect(9), con_is_bound(9), con_is_visible(9), con_debug_enter(9), con_debug_leave(9), do_unregister_con_driver(9) π¦πΈπ
and that's the whole page, bestie β mwah π this gem dropped from ./drivers/tty/vt in October 2026, filed under __vc_resize(9). slay, go hold that sem πβ
π¦ 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