STRUCT NVMET_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct nvmet_port β€” Kernel API Manual πŸ’–

okay so bestie, this is the Kernel API Manual page for struct nvmet_port β€” literally the common structure that keeps port information for the target. that’s the whole vibe. ✨

🌸 NAME 🌸

struct nvmet_port β€” common structure to keep port information for the target. no cap, that’s the assignment. 🫢

✨ SYNOPSIS ✨

here’s the full struct, exact and untouched, because we do not edit source in this house πŸ’…:

struct nvmet_port {
    struct list_head                entry;
    struct nvmf_disc_rsp_page_entry disc_addr;
    struct config_group             group;
    struct config_group             subsys_group;
    struct list_head                subsystems;
    struct config_group             referrals_group;
    struct list_head                referrals;
    struct list_head                global_entry;
    struct config_group             ana_groups_group;
    struct nvmet_ana_group          ana_default_group;
    struct key                      *keyring;
    void *priv;
    bool enabled;
    int inline_data_size;
    int max_queue_size;
    int mdts;
    const struct nvmet_fabrics_ops  *tr_ops;
    bool pi_enable;
    enum nvme_ana_state             ana_state[];
};

πŸŽ€ Members πŸŽ€

  • entry β€” entry into referrals or transport list. iconic little list-entry moment, periodt. πŸ¦‹
  • disc_addr β€” address information is stored in a format defined for a discovery log page entry. discovery-log-page format, iykyk. πŸ”₯
  • group β€” ConfigFS group for this element’s folder. slay, folder energy. πŸŽ€
  • priv β€” private data for the transport. keep it private, bestie. πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/nvme/target/nvmet.h β€” go read the source, it’s right there. πŸ‘‘

signed off from ./drivers/nvme/target, October 2026 β€” Kernel API Manual girlie, mwah πŸ’œ

πŸ“¦ where this page comes from