mtd_virt_concat_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mtd_virt_concat_destroy ✨

okay so this page is from the Kernel API Manual and it's literally about tearing a concat apart, we love a clean breakup πŸ’…


🌸 NAME 🌸

mtd_virt_concat_destroy β€” bestie, this removes the concat that has a specific mtd device sitting in it as one of its components 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int mtd_virt_concat_destroy (struct mtd_info *mtd );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mtd β€” pointer to the MTD device info structure, iykyk πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

So it returns 0 on succes (that's how the page spells it, she's quirky, we stan πŸŽ€), or a negative error code. Ngl, keep an eye on that return value, okay? 😭

Here's the vibe: if the mtd_info object is part of a concatenated device, then all the other MTD devices inside that concat get registered individually β€” like, each one gets its own little main character moment ⭐

Then the concatenated device is removed, along with its concatenation component. Gone. Periodt. πŸ’€


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/mtd/concat.h plus these iconic siblings:


k bye bestie, that's the whole page ✨ brought to you by the source at ./include/linux/mtd, dated October 2026 β€” no cap, that's literally what it says πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from