kunit_device_unregister(9)
π NAME π
okay bestie, welcome to the kunit_device_unregister(9) page from the Kernel API Manual β it's literally all about unregistering a KUnit-managed device, and yes, it's giving cleanup era π
β¨ SYNOPSIS β¨
void kunit_device_unregister (struct kunit *test , struct device *dev );
πΈ ARGUMENTS πΈ
testβ the test context object that created the device, aka the main character that set this whole thing up π«Άdevβ the device. literally the device. that's it. that's the argument π
π¦ DESCRIPTION π¦
So what does it do? It unregisters and destroys a struct device that was created with kunit_device_register or kunit_device_register_with_driver. iconic behavior, no cap β¨
And if KUnit was the one who created a driver, it cleans that up as well β like, it's not gonna leave a mess behind, because that would be so not slay π
π₯ SEE ALSO π₯
- Kernel file:
./include/kunit/device.h kunit_driver_create(9)kunit_device_register(9)kunit_device_register_with_driver(9)
π that's the whole vibe, bestie: source/version./include/kunit, dated October 2026, pagekunit_device_unregister(9). cleanup queen behavior, periodt ππ
π¦ 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