STRUCT NVMET_FC_TARGET_PORT(9)
π struct nvmet_fc_target_port(9) π
okay bestie, this is the Kernel API Manual entry for struct nvmet_fc_target_port, and itβs literally the little bridge between NVME-FC transport and a LLDD so they can reference a local NVME subsystem port. slay β¨
πΈ NAME πΈ
struct nvmet_fc_target_port β this is a structure used between NVME-FC transport and a LLDD to reference a local NVME subsystem port. Itβs allocated/created by the nvme_fc_register_targetport() transport interface. no cap π«Ά
β¨ SYNOPSIS β¨
hereβs the exact shape of it, bestie:
struct nvmet_fc_target_port {
u32 port_num;
u64 node_name;
u64 port_name;
void *private;
u32 port_id;
enum nvme_fc_obj_state port_state;
};
π Members π
port_numβ NVME-FC transport subsystem port number πnode_nameβ FC WWNN for the port π¦port_nameβ FC WWPN for the port πprivateβ pointer to memory allocated alongside the local port structure that is specifically for the LLDD to use. The length of the buffer corresponds to thetarget_priv_szvalue specified in thenvme_fc_target_templatesupplied by the LLDD. πport_idβ FC N_Port_ID currently assigned the port. Upper 8 bits must be set to 0. β οΈport_stateβ Operational state of the port. β
π Description π
so the fields with static values for the port are initialized by the port_info struct supplied to the registration call. π§
then there are the fields with dynamic values. Values may change base on link state. The LLDD may reference fields directly to change them. Theyβre initialized by the port_info struct supplied to the registration call too. π
π¦ SEE ALSO π¦
peep the kernel file ./include/linux/nvme-fc-driver.h, plus these iconic structs:
struct nvmefc_ls_req(9)struct nvmefc_ls_rsp(9)struct nvme_fc_port_info(9)struct nvmefc_fcp_req(9)struct nvme_fc_local_port(9)struct nvme_fc_remote_port(9)struct nvme_fc_port_template(9)struct nvmet_fc_port_info(9)struct nvmefc_tgt_fcp_req(9)struct nvmet_fc_target_template(9)
source/version: ./include/linux Β· dated October 2026 Β· manual: struct nvmet_fc_target_port(9) β mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms