bnx2fc_destroy(9)
π bnx2fc_destroy β bestie edition
okay so this is bnx2fc_destroy(9) from the Kernel API Manual β it's a kernel API page, section 9, and it's the one that tears down a bnx2fc FCoE interface. short page, but honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
bnx2fc_destroy β destroy a bnx2fc FCoE interface
like, it's the cleanup crew. the bye bestie of FCoE interfaces πΈ
β¨ SYNOPSIS β¨
int bnx2fc_destroy (struct net_device *netdev );
that's the whole signature, no cap. returns an int, takes one struct net_device * named netdev. π
β¨ ARGUMENTS β¨
netdevβ the net device that the FCoE interface is on. yeah. that one. the FCoE interface literally lives on it, so that's the thing you hand over π¦
β¨ DESCRIPTION β¨
called from sysfs. that's it. that's the description. i know π the manpage is not giving essay, it's giving "the vibes are self-explanatory". so: something in sysfs calls this, and bnx2fc_destroy is what happens next. don't ask me for more lore, the original page is literally this short π
β¨ RETURN β¨
0β success β¨ slay. that's the documented value, and it's the good one.
β¨ SEE ALSO β¨
the kernel file this lives in is ./drivers/scsi/bnx2fc/bnx2fc_fcoe.c, and here's the whole friend group π β all of them, no skips:
bnx2fc_xmit(9)bnx2fc_rcv(9)bnx2fc_percpu_io_thread(9)bnx2fc_get_link_state(9)bnx2fc_indicate_netevent(9)bnx2fc_fip_recv(9)bnx2fc_update_src_mac(9)bnx2fc_get_src_mac(9)bnx2fc_fip_send(9)bnx2fc_hba_create(9)bnx2fc_if_create(9)bnx2fc_bind_adapter_devices(9)bnx2fc_ulp_get_stats(9)bnx2fc_ulp_start(9)bnx2fc_ulp_stop(9)bnx2fc_ulp_init(9)bnx2fc_ctlr_enabled(9)_bnx2fc_create(9)bnx2fc_create(9)bnx2fc_ctlr_alloc(9)bnx2fc_find_hba_for_cnic(9)bnx2fc_ulp_exit(9)bnx2fc_fcoe_reset(9)bnx2fc_cpu_online(9)bnx2fc_mod_init(9)
that's twenty-five siblings and every single one is invited to the group chat π
lowkey reminder:bnx2fc_destroyreturns0for success, and the only documented caller is sysfs. that's the whole tea. don't invent extra lore, i'm not gonna π
and that's a wrap, bestie π this page ships from ./drivers/scsi/bnx2fc, dated October 2026 β mwah, go destroy some FCoE interfaces responsibly π
β¨π₯
π¦ 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