fcoe_ctlr_device_delete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

fcoe_ctlr_device_delete β€” bestie, this one deletes a FIP ctlr and its whole sysfs subtree, no cap ✨

So this is a fcoe_ctlr_device_delete(9) page from the Kernel API Manual, and we're about to get into it πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void fcoe_ctlr_device_delete (struct fcoe_ctlr_device *ctlr );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctlr β€” a pointer to the ctlr that's getting deleted, periodt πŸ’–

✨ DESCRIPTION ✨

Okay so picture this: fcoe_ctlr_device_delete deletes a FIP ctlr and any fcfs attached to it. And the way deleting those fcfs works? Their children get deleted too β€” it's giving cascading main character energy πŸ‘‘

The ctlr gets detached from sysfs and its resources are freed (work q), but the memory is not freed until its last reference is released. So like… the vibe is gone, but the memory is still lowkey hanging around until everybody lets go πŸ™ˆ

This routine expects no locks to be held before calling. Zero. None. Don't do it, bestie 😭

TODO: currently there are no callbacks to clean up LLD data for a fcoe_fcf_device. LLDs must keep this in mind, because they need to clean up each of their LLD data for all fcoe_fcf_device before calling fcoe_ctlr_device_delete. This is important β€” don't skip the cleanup, fr fr πŸ’€

🌈 SEE ALSO 🌈


Okay that's the whole page, bestie 🫢 this little icon comes straight from the ./drivers/scsi/fcoe corner of the kernel, version October 2026, and it's a whole fcoe_ctlr_device_delete(9) situation. Slay, stay lock-free, and clean up your LLD data before you call her πŸ’œπŸŽ€

πŸ“¦ where this page comes from