bnx2x_func_reset_cmn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bnx2x_func_reset_cmn β€” from the Kernel API Manual, section 9

okay so bestie, welcome to bnx2x_func_reset_cmn(9), straight out of the Kernel API Manual ✨ this one's a little guy with a big job: it resets hardware at the common stage. that's it. that's the vibe. let's get into it 🫢


🌸 NAME 🌸

bnx2x_func_reset_cmn β€” reset HW at common stage πŸ’…


✨ SYNOPSIS ✨

void bnx2x_func_reset_cmn (struct bnx2x *bp , const struct
       bnx2x_func_sp_drv_ops *drv );

like yes it's a void function, it takes two pointers, and it does not return anything to you. no notes. iconic behavior honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bp β€” device handle πŸ–‡οΈ this is your device, your main character
  • drv β€” lowkey no description given for this one in the original, so bestie we're not gonna invent one πŸ™ˆ it's a const struct bnx2x_func_sp_drv_ops * and that's what we know, periodt

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it resets the HW at the FW_MSG_CODE_DRV_UNLOAD_COMMON and FW_MSG_CODE_DRV_UNLOAD_COMMON_CHIP stages πŸ’€ literally, in those two stages, it resets the COMMON, COMMON_CHIP, FUNCTION-only and PORT-only HW blocks. all of them. not me resetting every block in the group chat at once 😭

that's the whole thing, no cap β€” one function, one job, four flavors of HW block getting reset at two specific unload stages. slay πŸ”₯


🌈 SEE ALSO 🌈

the kernel file itself lives here, bestie β€” go read it, iykyk πŸ’œ

Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c

and now the friend group, brace yourself, this is a long list 🧚:

like genuinely obsessed with how many siblings this function has πŸ’–


ngl bestie, that SEE ALSO list is basically a whole family reunion β€” read them in order if you're trying to understand the flow, but no pressure, we're just vibing 😌

and that's the page!! 🌸 source is ./drivers/net/ethernet/broadco... and it's dated October 2026 β€” so yeah, future-iconic πŸ’« mwah, go reset some hardware, you got this πŸ’œ

πŸ“¦ where this page comes from