mtd_virt_concat_destroy(9)
β¨ 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
- 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