libnvme(9)
libnvme(9)
okay so bestie, welcome to the API Manual π this is the page for libnvme, and we're about to talk about one specific little enum. grab a snack, it's gonna be cute and it's gonna be thorough.
β¨ NAME β¨
enum nvme_zns_id_ns_ozcs β Optional Zoned Command Support
yes that's the whole name. it's a mouthful, i know. say it three times fast and you summon a ZNS drive π§
π¦ SYNOPSIS π¦
here's the whole thing, exactly as it lives, no cap:
enum nvme_zns_id_ns_ozcs {
NVME_ZNS_ID_NS_OZCS_RAZB_SHIFT ,
NVME_ZNS_ID_NS_OZCS_RAZB_MASK ,
NVME_ZNS_ID_NS_OZCS_ZRWASUP_SHIFT ,
NVME_ZNS_ID_NS_OZCS_ZRWASUP_MASK
};
four constants. that's the whole enum. it's giving minimal, it's giving "i have a job and i do it" π
π Constants
each one of these is a little helper for pulling info out of the optional zoned command support bits. let's meet them π«Ά
NVME_ZNS_ID_NS_OZCS_RAZB_SHIFTβ the shift amount you use to get Read Across Zone Boundaries (RAZB). it's the "how far do i slide over" number, bestie β¨NVME_ZNS_ID_NS_OZCS_RAZB_MASKβ the mask you use to get RAZB. slide first, then mask. that's the whole routine πNVME_ZNS_ID_NS_OZCS_ZRWASUP_SHIFTβ the shift amount you use to get ZRWA Supported (ZRWASUP). another shift, another slay π₯NVME_ZNS_ID_NS_OZCS_ZRWASUP_MASKβ the mask you use to get ZRWASUP. mask goes brrr, info comes out β
ngl, these four are a matched set: two shifts, two masks. shift gets you into position, mask keeps only the bits you actually want. iconic teamwork fr fr π
and that's the page!! short and sweet, just how we like it π
kisses and bitwise love, this was enum nvme_zns_id_ns_ozcs from the libnvme(9) API Manual, dated October 2026 π see you in the next manpage, bestie β mwah πβ¨
π¦ 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