bnx2fc_if_create(9)
π bnx2fc_if_create(9) β like, the Kernel API Manual, but make it make sense π
okay bestie, buckle up π this one's from the Kernel API Manual and it's literally called bnx2fc_if_create β which, iykyk, is the "spin up an FCoE instance on a given interface" girlie. she's a function, she's a whole vibe, let's get into it β¨
β¨ NAME β¨
bnx2fc_if_create β create an FCoE instance on a given interface π¦
πΈ SYNOPSIS πΈ
struct fc_lport * bnx2fc_if_create (struct bnx2fc_interface *interface ,
struct device *parent , int npiv );
no cap, that's the whole signature β three args, one struct fc_lport * coming back at you π
π ARGUMENTS π
interfaceβ the FCoE interface you're creating a local port on. this is the main character here πparentβ a device pointer that gets to be the parent insysfsfor the SCSI host. yes, it's giving family dynamics π«Άnpivβ tells you if the port is a vport or not. simple as that, fr fr π
π DESCRIPTION π
so what does she actually do? she creates a fc_lport instance and a Scsi_Host instance, and then she configures them both. two-for-one, we love a multitasker π
β¨
β RETURN β
returns the allocated fc_lport β or an error pointer, if things went sideways π (check it, bestie, don't just assume it slayed π)
π¦ SEE ALSO π¦
okay this is the part where the whole friend group shows up πΈ β first off, the kernel file itself lives at ./drivers/scsi/bnx2fc/bnx2fc_fcoe.c, and then there's the entire squad:
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_destroy(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)
like, the whole bnx2fc extended universe, periodt ππ₯
heads up bestie: every single one of those references is listed exactly as-is β don't be out here renaming them, they're load-bearing π
and that's the page!! π sourced from ./drivers/scsi/bnx2fc (that's the source/version bit), dated October 2026 β so go forth, create your FCoE instances, and slay π
π mwah π«Ά
π¦ 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