__hvc_resize(9)
π __hvc_resize(9) β Kernel API Manual π
π NAME π
__hvc_resize β update terminal window size information. Bestie, it's the function that tucks the new terminal size into the HVC console vibes.
β¨ SYNOPSIS β¨
void __hvc_resize (struct hvc_struct *hp , struct winsize ws );
π ARGUMENTS π
hpβ HVC console pointer. Main character pointer energy.wsβ Terminal window size structure. This is the size info being handed over.
πΈ DESCRIPTION πΈ
Okay so __hvc_resize stores the specified window size information in the hvc structure of hp. It also schedules the tty resize update. Slay.
Locking: the manual says "Locking free; the function MUST be called holding hp->lock." That's the exact energy, so yes: hold hp->lock when you call it, and do not skip the lock.
π₯ SEE ALSO π₯
- Kernel file
./drivers/tty/hvc/hvc_console.c hvc_set_winsz(9)
source/version: ./drivers/tty/hvc Β· date: October 2026 Β· page: __hvc_resize(9) π«Άπ
π¦ 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