vdo_make_logical_zones(9)
β¨ vdo_make_logical_zones(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function from the dm-vdo world and honestly it's giving "small but mighty" β it literally spins up a whole set of logical zones for you. no cap.
πΈ NAME πΈ
vdo_make_logical_zones β Create a set of logical zones.
like, that's the whole job. it makes the zones. iconic behavior tbh π
π¦ SYNOPSIS π¦
int vdo_make_logical_zones (struct vdo *vdo , struct logical_zones
**zones_ptr );
so it hands you back an int (iykyk that's your status code, bestie) and takes two things: the vdo and a pointer-to-pointer for the new zones. periodt. π
π ARGUMENTS π
vdoβ The vdo to which the zones will belong. basically the vibe-check parent of these zones, they're its children fr fr πzones_ptrβ A pointer to hold the new zones. this is where the freshly-made zones get parked, so don't lose it π«Ά
β RETURN β
VDO_SUCCESS or an error code.
that's it, that's the whole contract β either it slays (VDO_SUCCESS) or it hands you an error code and you go π. no in-between.
π₯ SEE ALSO π₯
eep, this is the fun part, the whole friend group π
Kernel file ./drivers/md/dm-vdo/logical-zone.c:
as_logical_zone(9)initialize_zone(9)vdo_free_logical_zones(9)check_for_drain_complete(9)vdo_resume_logical_zones(9)update_oldest_active_generation(9)vdo_increment_logical_zone_flush_generation(9)vdo_acquire_flush_generation_lock(9)notify_flusher(9)attempt_generation_complete_notification(9)vdo_release_flush_generation_lock(9)vdo_dump_logical_zone(9)
like genuinely go read them all, they're lowkey all connected π§
ngl bestie, this page lives in./drivers/md/dm-vdoβ that's the kernel source tree, so don't come looking for it in your/usr/share/manand get confused π
that's the whole page!! mwah π β written up in October 2026, straight from the ./drivers/md/dm-vdo corner of the kernel tree, page vdo_make_logical_zones(9). stay slay, stay zoned π
β¨π
π¦ 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