fcoe_ctlr_device_delete(9)
π 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 afcoe_fcf_device. LLDs must keep this in mind, because they need to clean up each of their LLD data for allfcoe_fcf_devicebefore callingfcoe_ctlr_device_delete. This is important β don't skip the cleanup, fr fr π
π SEE ALSO π
- Kernel file
./drivers/scsi/fcoe/fcoe_sysfs.c fcoe_ctlr_device_release(9)fcoe_fcf_device_release(9)fcoe_ctlr_device_flush_work(9)fcoe_ctlr_device_queue_work(9)fcoe_ctlr_device_flush_devloss(9)fcoe_ctlr_device_queue_devloss_work(9)fcoe_ctlr_device_add(9)fcoe_fcf_device_final_delete(9)fip_timeout_deleted_fcf(9)fcoe_fcf_device_delete(9)fcoe_fcf_device_add(9)
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
- 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