libnvme(2)
πΈ NAME πΈ
enum nvme_id_ns_dlfeat β bestie, this enum is the whole vibe check for a namespace: it tells you all about the features that affect deallocating logical blocks for this namespace. π
β¨ SYNOPSIS β¨
enum nvme_id_ns_dlfeat {
NVME_NS_DLFEAT_RB ,
NVME_NS_DLFEAT_RB_NR ,
NVME_NS_DLFEAT_RB_ALL_0S ,
NVME_NS_DLFEAT_RB_ALL_FS ,
NVME_NS_DLFEAT_WRITE_ZEROES ,
NVME_NS_DLFEAT_CRC_GUARD
};
π Constants π
okay so these are the members, and every single one of them is iconic in its own little way π«Ά
NVME_NS_DLFEAT_RBβ it's giving mask. This one masks out the bits so you can actually read the value of the read behavior. πNVME_NS_DLFEAT_RB_NRβ lowkey rude but okay: the read behavior is literally not reported. πNVME_NS_DLFEAT_RB_ALL_0Sβ when a logical block gets deallocated, it comes back with all bytes cleared to0h. squeaky clean. β¨NVME_NS_DLFEAT_RB_ALL_FSβ same deallocated logical block energy, except all the bytes come back set toFFh. iconic contrast. πNVME_NS_DLFEAT_WRITE_ZEROESβ if this bit is set, it means the controller supports the Deallocate bit in the Write Zeroes command for this namespace. no cap, that's the whole thing. π₯NVME_NS_DLFEAT_CRC_GUARDβ if this bit is set, the Guard field for deallocated logical blocks that carry protection information is set to the CRC for the value read from the deallocated logical block and its metadata. yeah it's a mouthful, but it ate. π
fr fr bestie, that's the entire page β nothing skipped, nothing extra, just the facts with a lil sparkle. π¦
and that's a wrap on the enum nvme_id_ns_dlfeat page from the libnvme(2) API manual, dated July 2026 β ty for coming to my TED talk, mwah ππβ¨
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms