hvc_set_winsz(9)
π hvc_set_winsz(9) β like, the Kernel API Manual page, bestie πΈ
okay so you found the page for hvc_set_winsz, and yes it lives in the Kernel API Manual, and yes it's about resizing the hvc tty terminal window. tiny function, big "please don't call me in the wrong place" energy. let's get into it π«Ά
β¨ NAME β¨
hvc_set_winsz β resize the hvc tty terminal window π
literally that's the whole job. it resizes. the hvc tty terminal window. slay.
β¨ SYNOPSIS β¨
void hvc_set_winsz (struct work_struct *work );
that's the whole signature, no cap. returns void, takes one pointer, done. π
β¨ ARGUMENTS β¨
workβ a work structure. that's it, that's the argument. it's thestruct work_struct *workfrom up there in the synopsis, bestie, we're not doing a mystery here π
β¨ DESCRIPTION β¨
okay so this is the important part and i need you to actually listen π
The routine shall not be called within an atomic context because it might sleep. π΄
like... it might sleep. it's a sleepy little function. so if you call it from an atomic context you're setting yourself up for a bad time, and not the cute kind of bad time. fr fr, don't do it. π
Locking: hp->lock π
that's the lock it's dealing with. hp->lock. write it down. iykyk.
β¨ SEE ALSO β¨
- Kernel file
./drivers/tty/hvc/hvc_console.cπ __hvc_resize(9)β
like, go read those if you want the whole lore. the source file is right there and __hvc_resize(9) is the sibling you should probably also know about. obsessed with a cross-reference, honestly. π¦
and that's the page!! π this little beauty comes from ./drivers/tty/hvc, dated October 2026, and it's part of the Kernel API Manual β go forth and resize responsibly, bestie, and please keep it out of atomic context πβ¨
π¦ 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