fcoe_transport_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fcoe_transport_destroy β€” destroy a FCoE interface πŸ’–

okay so this is a page straight out of the Kernel API Manual (kernel docs bestie, we're in the big leagues now) and honestly? it's a little function with a big job. let's get into it 🫢


✨ NAME ✨

fcoe_transport_destroy β€” Destroy a FCoE interface

like, literally. it's the one that tears an FCoE interface down. bye bye πŸ‘‹


✨ SYNOPSIS ✨

int fcoe_transport_destroy (const char *buffer , const struct
kernel_param *kp );

she takes two args and hands you back an int. simple queen πŸ’…


✨ ARGUMENTS ✨

  • buffer β€” the name of the Ethernet interface to be destroyed. yes, that's the one getting yeeted. πŸͺ¦
  • kp β€” the associated kernel parameter. it's const struct kernel_param * so like, hands off.

✨ DESCRIPTION ✨

so here's the tea 🍡 β€” this gets called from sysfs. and while it's doing its thing, it holds ft_mutex the entire time it calls the registered fcoe transport's destroy function. so bestie is holding the lock while she works. respect it 🫑

lowkey important: the mutex is held across that destroy call. iykyk.

✨ RETURN ✨

0 for success πŸ”₯

(that's the whole return section. short and iconic. periodt.)


✨ SEE ALSO ✨

the kernel file, in all her glory:

Kernel file ./drivers/scsi/fcoe/fcoe_transport.c

and then the whole friend group πŸ˜­πŸ’–:


okay that's the whole page, go read the source babes πŸŽ€

sign-off szn 🧚: this one lives under ./drivers/scsi/fcoe and it's dated October 2026 β€” yes, future girlie behaviour. mwah πŸ’‹

πŸ“¦ where this page comes from