of_machine_read_model(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_machine_read_model(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for of_machine_read_model(9). it's giving short-and-sweet, and it lowkey does exactly one thing: gets the model string of this machine. slay. ✨

🌸 NAME 🌸

  • of_machine_read_model β€” get the model string of this machine. periodt. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int of_machine_read_model (const char **model );

yes, that's the exact signature. const char **model is doing its double-pointer thing, and we respect it. 🫢

πŸ¦‹ ARGUMENTS πŸ¦‹

  • model β€” address at which the address of the model string will be stored. it's address-ception, but make it kernel-coded. πŸ’–

⭐ RETURN ⭐

  • 0 on success, negative error number on failure. clean, simple, iconic. no notes. πŸ’€βœ¨

πŸ”₯ SEE ALSO πŸ”₯

bestie, here's the whole squad. first, the kernel file:

  • Kernel file: ./drivers/of/base.c

then all the cross-references, and yes, we're listing every single one:

xoxo bestie πŸ’‹ β€” source/version ./drivers/of, date October 2026, title of_machine_read_model(9). mwah πŸŽ€

πŸ“¦ where this page comes from