__vc_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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, bestie
  • cols β€” columns πŸ“
  • rows β€” rows πŸ“
  • from_user β€” invoked by a user? πŸ™ˆ (yes/no tea, bool style)

πŸ‘‘ 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