vcs_size(9)
β¨ vcs_size(9) β¨
okay so this is a page from the Kernel API Manual β yes, the kernel has a manual, and yes it's serving vintage typewriter realness, but we're here for it π
This one's about vcs_size, and it's honestly short but iconic.
π NAME π
vcs_size β returns the size for a VC in @vc π
(no cap, that's literally the whole job. it's giving "one specific task, done well" main character energy.)
π¦ SYNOPSIS π¦
int vcs_size (const struct vc_data *vc , bool attr , bool unicode );
like, that's the whole signature bestie β one int coming back at you, three things going in π«Ά
πΈ ARGUMENTS πΈ
vcβ which VC we're talking about here π (aconst struct vc_data *, so it's read-only and on its best behaviour)attrβ does it use attributes? β¨ (abool, so likeβ¦ yes or no, pick one)unicodeβ is it unicode? π₯ (also abool, also a yes-or-no vibe check)
π§ DESCRIPTION π§
okay this is the important part, don't scroll past it π
Must be called with console_lock.
that's it. that's the description. but it's not a suggestion, bestie β it's a must. hold that lock, or things go sideways and nobody wants that π
π SEE ALSO π
- Kernel file
./drivers/tty/vt/vc_screen.cβ the whole implementation lives here, go read it, it ate π vcs_vc(9)β the sister page, also a must-read, iykyk π
fr fr: lock first, call second. no lock, no peace π
that's the whole page, and it's from the kernel tree over in ./drivers/tty/vt, dated October 2026 β so like, future-iconic β¨ go forth and console_lock responsibly, mwah ππ
π¦ 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