nvmet_fc_unr...r_targetport(9)
π nvmet_fc_unregister_targetport(9) β the Kernel API Manual page, bestie edition π
okay so real talk, this one lives in the Kernel API Manual, and it's the lil function that says "bye bestie π" to a target port. welcome to the group chat.
β¨ NAME β¨
nvmet_fc_unregister_targetport β it's the transport entry point that an LLDD calls to deregister/remove a local NVME subsystem FC port that was previously registered. basically: the un-register. the farewell tour. the "we are so done here" moment π«Ά
β¨ SYNOPSIS β¨
int nvmet_fc_unregister_targetport (struct nvmet_fc_target_port
*target_port );
like, it returns an int, it takes one thing, it's giving very low-drama signature ngl π
β¨ ARGUMENTS β¨
target_portβ a pointer to the (registered) target port that is to be deregistered. yes, the registered one β that's the whole vibe. this is the port you're about to send off into the sunset π
β¨ RETURN β¨
it hands back a completion status. the rules are:
- must be
0upon success β¨ (slay, it worked) - a negative errno upon failure π β for example
-ENXIO
fr fr, check that return value. 0 = iconic, negative = go read your errno and have a little think.
β¨ SEE ALSO β¨
the whole friend group lives in the kernel file ./drivers/nvme/target/fc.c π¦:
nvmet_fc_register_targetport(9)β the one that puts a port in (the opposite energy, the origin story π)nvmet_fc_invalidate_host(9)nvmet_fc_rcv_ls_req(9)nvmet_fc_rcv_fcp_req(9)nvmet_fc_rcv_fcp_abort(9)
and that's the whole page, no cap π§
sign-off time: this lil masterpiece comes from ./drivers/nvme/target, dated October 2026, and it's filed under nvmet_fc_unr...r_targetport(9) β yes the title in the corner is literally truncated like that, she's mysterious, she's enigmatic, we love her for it ππ
π¦ 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