vt_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME

vt_resize β€” resize a VT. Yep, that's the whole vibe, and this is the Kernel API Manual page for vt_resize(9), bestie. πŸ’…


✨ SYNOPSIS

int vt_resize (struct tty_struct *tty , struct winsize *ws );

πŸ¦‹ ARGUMENTS

  • tty β€” the tty to resize. That's the terminal bestie getting the glow-up. 🫢
  • ws β€” the winsize attributes. Basically the size tea. πŸ“

πŸ’– DESCRIPTION

Okay so vt_resize resizes a virtual terminal. It gets called by the tty layer as we register our own handler for resizing β€” very main character of us, ngl. The mutual helper does all the actual work, so vt_resize is lowkey the pretty face of the operation. ✨

πŸ”’ Locking: takes the console sem and the called methods then take the tty termios_rwsem and the tty ctrl.lock in that order. That order is not a suggestion, bestie β€” it's giving strict choreography. πŸ’…

🌈 SEE ALSO

Kernel file: ./drivers/tty/vt/vt.c β€” go say hi, it's iconic. πŸ¦‹

mwah πŸ’‹ β€” this page lives under ./drivers/tty/vt, dated October 2026, and it's the vt_resize(9) manual page. byeee 🫢

πŸ“¦ where this page comes from