fm10k_close(9)
π 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:
fm10k_setup_tx_resources(9)fm10k_setup_all_tx_resources(9)fm10k_setup_rx_resources(9)fm10k_setup_all_rx_resources(9)fm10k_clean_tx_ring(9)fm10k_free_tx_resources(9)fm10k_clean_all_tx_rings(9)fm10k_free_all_tx_resources(9)fm10k_clean_rx_ring(9)fm10k_free_rx_resources(9)fm10k_clean_all_rx_rings(9)fm10k_free_all_rx_resources(9)fm10k_request_glort_range(9)fm10k_restore_udp_port_info(9)fm10k_udp_tunnel_sync(9)fm10k_open(9)fm10k_tx_timeout(9)fm10k_host_mbx_ready(9)fm10k_queue_vlan_request(9)fm10k_queue_mac_request(9)fm10k_clear_macvlan_queue(9)fm10k_get_stats64(9)
π 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
- 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