libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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