nvme_fc_register_remoteport(9)
π nvme_fc_register_remoteport(9) β like, the Kernel API Manual page, bestie
okay so picture this: you're an LLDD (yes, that's a real acronym, it stands for Low-Level Device Driver, iykyk) and you've just found out a NVME subsystem FC port exists on your fabric. iconic. but nobody knows about it yet. so you call this transport entry point to register the existence of that port, and the kernel world gets a little more β¨connectedβ¨.
that's literally the whole vibe of nvme_fc_register_remoteport. it's the transport entry point an LLDD calls to register the existence of a NVME subsystem FC port on its fabric. no cap. π¦
β¨ SYNOPSIS β¨
int nvme_fc_register_remoteport (struct nvme_fc_local_port *localport ,
struct nvme_fc_port_info *pinfo , struct nvme_fc_remote_port **portptr
);
she takes three args and returns an int. that's the whole signature, don't come for her π
π ARGUMENTS π
localportβ pointer to the (registered) local port that the remote subsystem port is connected to. so like, the local port is already registered, we're just saying "hey, this remote thing plugs into that." π«Άpinfoβ pointer to information about the port to be registered. the deets, the lore, the whole story about the port. πportptrβ pointer to a remote port pointer. upon success, the routine will allocate anvme_fc_remote_portstructure and place its address in the remote port pointer. upon failure, remote port pointer will be set to0. so yeah, on the sad path you get a big fat zero. π«
bestie please note: on failure*portptrgets set to0, so don't go dereferencing that and then acting surprised. π
π₯ RETURN π₯
a completion status. it must be 0 upon success; a negative errno (ex: -ENXIO) upon failure. that's it, that's the tea. π
π SEE ALSO π
- Kernel file
./drivers/nvme/host/fc.c nvme_fc_register_localport(9)nvme_fc_unregister_localport(9)nvme_fc_unregister_remoteport(9)nvme_fc_rescan_remoteport(9)nvme_fc_rcv_ls_req(9)
all the siblings in ./drivers/nvme/host, go read them, they slay too β
and that's the page, bestie β brought to you by ./drivers/nvme/host, dated October 2026, filed forever under that extremely long function name. 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