kunit_device_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸ”₯


🌈 that's the whole vibe, bestie: source/version ./include/kunit, dated October 2026, page kunit_device_unregister(9). cleanup queen behavior, periodt πŸ’œπŸ‘‘
πŸ“¦ where this page comes from