libnvme(9)
π libnvme(9) β the API Manual, but make it make sense
Okay bestie, so this is a page straight out of the libnvme API manual (yes, that manual, section 9, we love a classic) and it's literally just one little enum doing its thing. No cap, it's tiny. But it's important, so let's get into it π«Ά
β¨ NAME β¨
enum nvme_zns_id_ns_zoc β the Zone Operation Characteristics crew π
πΈ SYNOPSIS πΈ
enum nvme_zns_id_ns_zoc {
NVME_ZNS_ID_NS_ZOC_VZC_SHIFT ,
NVME_ZNS_ID_NS_ZOC_VZC_MASK ,
NVME_ZNS_ID_NS_ZOC_ZAE_SHIFT ,
NVME_ZNS_ID_NS_ZOC_ZAE_MASK
};
Like, that's it. That's the whole vibe. Four constants, zero drama β¨
π Constants π
So each of these little cuties is a shift or a mask, and honestly they're giving "bit-fiddling main character energy". Here's the rundown π
NVME_ZNS_ID_NS_ZOC_VZC_SHIFTβ the shift amount you use to pull out the Variable Zone Capacity (VZC). Shift it, slay it πNVME_ZNS_ID_NS_ZOC_VZC_MASKβ the mask that gets you the VZC. Mask on, facts out πNVME_ZNS_ID_NS_ZOC_ZAE_SHIFTβ the shift amount to get the Zone Active Excursions (ZAE). Yes "excursions", not "excuses" β she's fancy πNVME_ZNS_ID_NS_ZOC_ZAE_MASKβ the mask that gets you the ZAE. Masked and iconic, periodt π
ngl bestie, shift + mask pairs are such a mood β you shift to the right spot, then mask off everything that isn't yours. That's the whole trick and it's lowkey gorgeous π¦
π¦ SEE ALSO π¦
There's no SEE ALSO on this page, bestie β she's a standalone queen π
<div align="center">π β¨ π πΈ π¦</div>
Okay that's the whole page, we ate and left no crumbs π This little slice of the libnvme(9) API manual is dated October 2026 β so mark your calendars, future bestie π π Bye, ily, go mask some bits π§ββοΈ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms