libnvme(2)
β¨ NAME β¨
enum nvme_fdp_config_fdpa β FDP Attributes, bestie π
Like, this is the enum that holds all the FDP (Flexible Data Placement) attribute fields for a configuration, broken out into shift and mask constants. It's giving "bitfield bookkeeping, but make it cute" π
π¦ SYNOPSIS π¦
enum nvme_fdp_config_fdpa {
NVME_FDP_CONFIG_FDPA_RGIF_SHIFT ,
NVME_FDP_CONFIG_FDPA_RGIF_MASK ,
NVME_FDP_CONFIG_FDPA_FDPVWC_SHIFT ,
NVME_FDP_CONFIG_FDPA_FDPVWC_MASK ,
NVME_FDP_CONFIG_FDPA_VALID_SHIFT ,
NVME_FDP_CONFIG_FDPA_VALID_MASK
};
okay so picture it: six constants, three little fields, each one with a SHIFT and a MASK. That's the whole squad, no cap π
πΈ Constants πΈ
Every single member, right here, nothing skipped, periodt π
NVME_FDP_CONFIG_FDPA_RGIF_SHIFTβ Reclaim Group Identifier Format Shift π you use this one to slide the reclaim group identifier format field into its spot.NVME_FDP_CONFIG_FDPA_RGIF_MASKβ Reclaim Group Identifier Format Mask π this is the one that keeps just those bits and shuts out the rest.NVME_FDP_CONFIG_FDPA_FDPVWC_SHIFTβ FDP Volatile Write Cache Shift β‘ the shift for the volatile write cache field, mwah.NVME_FDP_CONFIG_FDPA_FDPVWC_MASKβ FDP Volatile Write Cache Mask π«§ mask for that same volatile write cache field, so only its bits survive.NVME_FDP_CONFIG_FDPA_VALID_SHIFTβ FDP Configuration Valid Shift β the shift that places the "is this config even valid" field.NVME_FDP_CONFIG_FDPA_VALID_MASKβ FDP Configuration Valid Mask π and the mask that isolates it. Iconic.
ngl bestie, if you're mixing shifts and masks from different fields, that's a you problem and it will not slay. Keep each SHIFT with its own MASK π
π«Ά SEE ALSO π«Ά
(nothing listed in the original β so it's just you, me, and these six constants, fr fr π¦)
and that's the whole page! this one came from the libnvme API manual, page dated July 2026, titled enum nvme_fdp_config_fdpa, filed under section libnvme(2) π go forth and mask your bits correctly, ily π
π¦ 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