bdx_close(9)
π bdx_close(9) β a Kernel API Manual moment
okay bestie so we're in the Kernel API Manual today and the page is bdx_close(9), which lowkey has main character energy because it's the "turn the interface off" girlie. let's get into it π
β¨ NAME β¨
bdx_close β Disables a network interface π«Ά
like literally it disables it. that's the whole vibe.
πΈ SYNOPSIS πΈ
int bdx_close (struct net_device *ndev );
π¦ ARGUMENTS π¦
ndevβ the network interface device structure π this is the thing you're closing, bestie, it's giving "the device struct" and it's not optional (there aren't any other arguments, so it's kinda the whole cast)
π₯ DESCRIPTION π₯
Returns 0, periodt. this is not allowed to fail β no cap, it literally cannot fail, that's the contract π
So here's the lore: the close entry point gets called when an interface is de-activated by the OS. and ngl, the hardware is still under the driver's control at this point, but it needs to be disabled. so what happens? a global MAC reset is issued to stop the hardware, and then all transmit and receive resources are freed. iconic cleanup behaviour, honestly π
β οΈ heads up: the hardware is still under the driver's control here β it's not gone, it's just being disabled. don't get it twisted π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/tehuti/tehuti.c and honestly the whole friend group:
bdx_fifo_init(9)bdx_fifo_free(9)bdx_link_changed(9)bdx_isr_napi(9)bdx_fw_load(9)bdx_hw_start(9)bdx_open(9)__bdx_vlan_rx_vid(9)bdx_vlan_rx_add_vid(9)bdx_vlan_rx_kill_vid(9)bdx_change_mtu(9)bdx_rx_init(9)bdx_rx_free_skbs(9)bdx_rx_free(9)bdx_rx_alloc_skbs(9)bdx_rx_receive(9)__bdx_tx_db_ptr_next(9)bdx_tx_db_inc_rptr(9)bdx_tx_db_inc_wptr(9)bdx_tx_db_init(9)bdx_tx_db_close(9)bdx_tx_map_skb(9)bdx_tx_space(9)bdx_tx_transmit(9)bdx_tx_cleanup(9)bdx_tx_free_skbs(9)bdx_tx_push_desc(9)bdx_tx_push_desc_safe(9)bdx_probe(9)bdx_remove(9)
okay that's the page!! π this one lives at ./drivers/net/ethernet/tehuti and it's stamped October 2026 β so yeah, mark your calendar bestie, go off, slay, close that interface πβ¨π§
π¦ 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