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