kunit_platf...egister_full(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kunit_platform_device_register_full(9) πŸ’…

okay so you're in the Kernel API Manual bestie, and today's main character is kunit_platform_device_register_full β€” yes the whole name, we don't abbreviate, we respect her πŸŽ€


✨ NAME ✨

kunit_platform_device_register_full β€” registers a KUnit test-managed platform device that's described by platform device info. that's it. that's the whole job. and she does it flawlessly 🫢


🌸 SYNOPSIS 🌸

struct platform_device * kunit_platform_device_register_full (struct
kunit *test , const struct platform_device_info *pdevinfo );

like, look at her. so structured. so struct-y. lowkey iconic πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the test context, your little test-world bubble ✨
  • pdevinfo β€” the platform device information describing the new device. it's giving "blueprint for the baby device" 🍼

🌈 DESCRIPTION 🌈

so the vibe is: you register a test-managed platform device. and then β€” and this is the best part β€” the device gets unregistered automatically when the test completes. no manual cleanup, no "oops I forgot", no 3am panic. she handles it. queen behavior πŸ‘‘


⭐ RETURN ⭐

  • new platform device on success πŸŽ‰
  • IS_ERR on error 😭 (so like, check it. pls check it.)

πŸ”₯ SEE ALSO πŸ”₯

the whole kunit platform friend group fr fr πŸ’œ


ngl bestie, this one's short and sweet β€” read the SEE ALSO list before you go, the whole squad is in ./lib/kunit and they all ate πŸ’€βœ¨

kisses, this page lives in ./lib/kunit, and it was last touched October 2026 β€” mwah, go register some devices πŸ’–πŸŽ€πŸ§š

πŸ“¦ where this page comes from