fm10k_close(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fm10k_close β€” from the Kernel API Manual, bestie edition πŸŽ€

okay so picture this: we're deep in the Kernel API Manual, and today's main character is fm10k_close(9). she's the one who turns the lights off. literally. let's get into it ✨


🌸 NAME

fm10k_close β€” disables a network interface 🫢

like, she shuts it down. gracefully. no cap.


✨ SYNOPSIS

int fm10k_close (struct net_device *netdev );

πŸ¦‹ ARGUMENTS

  • netdev β€” the network interface device structure πŸ’– this is the device we're closing, bestie, the whole vibe check of the operation.

πŸ’œ DESCRIPTION

so here's the tea: it returns 0. that's it. that's the whole return story. this function is not allowed to fail β€” like, the kernel does not accept "oops" as an answer here, periodt.

the close entry point gets called when an interface is de-activated by the OS πŸ‘‘ at that moment the hardware is still under the driver's control, but it needs to be disabled. so what do we do? a global MAC reset is issued to stop the hardware, and then all the transmit and receive resources are freed. everything. cleaned out. iconic.

ngl this is one of those "no take-backs" situations β€” the 0 is mandatory, so don't come in here trying to return anything else πŸ™ˆ

πŸ”₯ SEE ALSO

kernel file ./drivers/net/ethernet/intel/fm10k/fm10k_netdev.c πŸ’€ yes, that's the source of truth, go read it

and the whole friend group, in order:


🌈 that's the whole page, bestie, you ate that. this little gem comes from ./drivers/net/ethernet/intel/f... and it's dated October 2026 β€” so yes, the fm10k_close(9) girlies stay booked and busy into the future πŸ’…πŸ’–

πŸ“¦ where this page comes from