kunit_platf...egister_full(9)
π 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_ERRon error π (so like, check it. pls check it.)
π₯ SEE ALSO π₯
- Kernel file
./lib/kunit/platform.c kunit_platform_device_alloc(9)kunit_platform_device_add(9)kunit_platform_device_unregister(9)kunit_platform_device_prepare_wait_for_probe(9)kunit_platform_driver_register(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms