hvc_get_chars(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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