of_console_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

of_console_check β€” Test and setup console for DT setup. yep, that's the whole name, bestie, and we're on the of_console_check(9) page from the Kernel API Manual, so buckle up. πŸ’–

πŸŒ€ SYNOPSIS πŸŒ€

bool of_console_check (const struct device_node *dn , char *name , int index );

okay so that's the function signature, and yes it returns a bool. no cap. ✨

πŸŽ€ ARGUMENTS πŸŽ€

  • dn β€” pointer to device node. the main-character node, basically.
  • name β€” name to use for preferred console without index. ex. "ttyS".
  • index β€” index to use for preferred console.

πŸ’… DESCRIPTION πŸ’…

Check if the given device node matches the stdout-path property in the /chosen node. If it does then register it as the preferred console. that's the whole plot, and it's lowkey iconic. 🫢

🌸 RETURN 🌸

TRUE if console successfully setup. Otherwise return FALSE. periodt. πŸ’€βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/base.c β€” and the whole friend group is here, bestie:

mwah πŸ’‹ β€” source ./drivers/of, October 2026.

πŸ“¦ where this page comes from