vkms_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vkms_destroy β€” like, the kernel API manual page for vkms_destroy(9)

okay bestie, so this is a page from the Kernel API Manual (section 9), and it's about one very specific little function. it's short, it's sweet, and it's literally gonna take you thirty seconds. let's go πŸŽ€


✨ NAME ✨

vkms_destroy β€” the function that destroys a device. yes, that's really it. dramatic, but accurate πŸ’€


🌸 SYNOPSIS 🌸

void vkms_destroy (struct vkms_config *config );

no return value, no surprises. it takes one pointer and it does one job 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • config β€” the config from which the device was created. not some random config, okay? this one. the one it came from. iykyk πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe check: the device gets completely removed. gone. not in a scary way, in a "we're done here" way ✨

but β€” and this is the important part, no cap β€” the config is not freed. it survives. it's still yours. the manpage is very clear that it can be reused, or destroyed separately with vkms_config_destroy. so don't you dare assume this function nuked your config, because it did not πŸ™ˆ

ok so quick recap bestie: device = destroyed. config = alive and unbothered. do with that what you will πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

all the sibling functions and structs, in the order the page gives them, and yes we're listing every single one because that's the whole point 🌈

kernel file ./drivers/gpu/drm/vkms/vkms_drv.h, plus:


and that's the whole page, bestie, you ate that πŸ“ this one lives at ./drivers/gpu/drm/vkms and the version/date on it is October 2026 β€” so like, future energy fr fr πŸ’œ bye bye 🧚

πŸ“¦ where this page comes from