hvc_get_chars(9)
π¦ hvc_get_chars(9) π¦
okay bestie, welcome to the Kernel API Manual β yes, the actual manual name, we're fancy here β¨ β and today's main character is hvc_get_chars, a function that literally goes and fetches characters from firmware for a vterm adapter. no cap, that's the whole vibe.
π NAME π
hvc_get_chars β retrieve characters from firmware for the denoted vterm adapter π
like, it's giving "middleman between you and the firmware", and honestly? iconic.
β¨ SYNOPSIS β¨
ssize_t hvc_get_chars (uint32_t vtermno , u8 *buf , size_t count );
that's it, that's the whole signature π β copy it exactly, don't @ me.
πΈ ARGUMENTS πΈ
vtermnoβ the vtermno or unit_address of the adapter you're pulling the data from π«Ά like, which adapter, bestie? this one.bufβ the character buffer where the character data fetched from firmware gets dropped π it's the lil bucket you're catching the vibes in.countβ not used? π yeah that's genuinely what the docs say, question mark and all. we do not know. it remains a mystery. the lore is incomplete.
π₯ SEE ALSO π₯
- Kernel file
./arch/powerpc/platforms/pseries/hvconsole.cβ go read the source, iykyk π hvc_put_chars(9)β the other one, the putting counterpart, fr fr
π real talk: count being "not used?" is a genuine documentation note, not me being dramatic. treat it as written, with the question mark, and don't go assuming behaviour that isn't documented here.
and that's the page, bestie β go fetch those characters π β¨
this lil gem lives in ./arch/powerpc/platforms/pseries, and the page is dated October 2026 β so yeah, slightly from the future, main character energy only π¦πβ
π¦ 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