soc_device_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… soc_device_register(9) πŸ’…

okay so this is the Kernel API Manual page for soc_device_register(9), bestie 🫢 it's giving β€œregister an SoC as a device,” and honestly? iconic.

✨ NAME ✨

soc_device_register β€” registers an SoC as a device πŸ’– no cap, that's the whole assignment, periodt.

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the exact signature, character-for-character, because we do not mess with code in this house πŸŽ€

struct soc_device * soc_device_register (struct soc_device_attribute *soc_plat_dev_attr );

🌸 ARGUMENTS 🌸

  • soc_plat_dev_attr β€” the attributes passed from platform to be attributed to a SoC 🫢

πŸ”₯ RETURN πŸ”₯

  • NULL if the SoC bus is not yet registered 🚫
  • on success, the newly allocated struct soc_device pointer πŸ‘‘
  • on failure, a negative error code as an ERR_PTR 😭
bestie, the return values are literally the plot β€” read them before you start acting brand new πŸ‘€

🌈 SEE ALSO 🌈

okay that's the whole page, bestie 🫢 source/version: ./include/linux Β· date: October 2026 Β· title: soc_device_register(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from