con_is_visible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… con_is_visible(9) β€” like, is your console even showing rn?

okay bestie, welcome to the Kernel API Manual ✨ today we're looking at con_is_visible(9), and honestly? it's a little one-line function with main character energy. it does exactly one (1) thing and we respect it for that 🫢


🌸 NAME 🌸

con_is_visible β€” checks whether the current console is visible πŸ‘€βœ¨

like, is it on screen or is it not. that's the whole vibe check.


πŸŽ€ SYNOPSIS πŸŽ€

bool con_is_visible (const struct vc_data *vc );

that's it. that's the whole signature. no cap πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vc β€” the virtual console 🌈 (yes, that's the entire description in the original, and yes, we're keeping it exactly like that, because sometimes the vibe is "figure the rest out from the type")

⭐ RETURN ⭐

  • zero if not visible πŸ™ˆ
  • nonzero if visible πŸ‘‘

so like, careful β€” the zero case is the not visible one, don't flip it around or you'll be out here thinking a hidden console is poppin' off 😭 classic truthiness trap fr fr


πŸ”₯ SEE ALSO πŸ”₯

okay this list is long but every single one is here, no skipping, we don't do that 🫢

the way that's a whole friend group of virtual-terminal functions πŸ’€ go read them, they're all iconic in their own way


ngl this page is short and sweet and that's exactly the point β€” con_is_visible(9) is a supporting character that shows up, tells you if the console is visible, and leaves. and we love that for it πŸŽ€

mwah πŸ’‹ that's the whole page! this little cutie lives in ./drivers/tty/vt, it's dated October 2026, and you can find it filed under con_is_visible(9) β€” periodt πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from