__hvc_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 __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 πŸ”₯


source/version: ./drivers/tty/hvc Β· date: October 2026 Β· page: __hvc_resize(9) πŸ«ΆπŸ’…

πŸ“¦ where this page comes from