nvmet_fc_unr...r_targetport(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 0 upon 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 πŸ¦‹:


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