_bnx2fc_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _bnx2fc_create(9) β€” like, the whole vibe

okay so bestie, welcome to the Kernel API Manual section 9, and today's main character is _bnx2fc_create. she's a function. she creates things. let's get into it πŸŽ€


✨ NAME ✨

_bnx2fc_create β€” Create bnx2fc FCoE interface

that's it, that's the whole job description, and she ate πŸ’…


🌸 SYNOPSIS 🌸

int _bnx2fc_create (struct net_device *netdev , enum fip_mode fip_mode ,
       enum bnx2fc_create_link_state link_state );

three arguments, one int back, no cap. copy it exactly like that if you're writing it down, don't get creative with the spacing, i'm literally begging πŸ™ˆ


πŸ¦‹ ARGUMENTS πŸ¦‹

  • netdev β€” the net_device object, aka the Ethernet interface you're creating on top of. this is the "where" of the whole situation, yk?
  • fip_mode β€” the FIP mode for this creation. it's an enum fip_mode, she has opinions about how you're doing FIP, respect her.
  • link_state β€” the ctlr link state on creation, typed enum bnx2fc_create_link_state. you're telling her what the link looks like at the moment she's born. first impressions fr πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so when does she get called? two places, bestie, and both of them are entrances to the same party:

  • from the libfcoe 'create' module parameter, via fcoe_create
  • or from fcoe_syfs's ctlr_create file

and here's the part where you go "oof" 😭 β€” libfcoe's 'create' module parameter is deprecated, so some consolidation of code can be done when that interface is removed. that's the plan. that's the tea. the parameter is lowkey on its way out the door πŸšͺ

ngl that deprecated bit is the important part β€” don't build your whole life on 'create' when she's literally packing her bags, iykyk

πŸ‘‘ RETURN πŸ‘‘

0 for success

that's it. zero. the good number. slay ⭐


🌈 SEE ALSO 🌈

bestie this list is LONG and i'm obsessed, she has so many friends, it's giving squad goals 🫢

Kernel file ./drivers/scsi/bnx2fc/bnx2fc_fcoe.c

then, in order, because we respect the order:

like i said. a whole friend group. every single one of them. no skips πŸ’€


okay and finally the sign-off because the footer deserves her moment too 🧚 β€” this page lives in ./drivers/scsi/bnx2fc, it's dated October 2026, and it's filed under _bnx2fc_create(9). periodt. go create some FCoE interfaces, bestie, you're gonna do amazing πŸŒΈπŸ’œ

πŸ“¦ where this page comes from