bdx_remove(9)
π bdx_remove(9) β the Kernel API Manual, bestie edition π
okay so welcome to bdx_remove(9), straight out of the Kernel API Manual β¨ pull up a chair, we're talking device removal and it's honestly kinda iconic.
πΈ NAME πΈ
bdx_remove β the Device Removal Routine, aka the "bestie, pack it up" function π§³
β¨ SYNOPSIS β¨
void bdx_remove (struct pci_dev *pdev );
like, that's the whole signature. no cap. returns void, takes one pointer, done. π
π¦ ARGUMENTS π¦
pdevβ the PCI device information struct π«Ά that's the one and only thing you hand over, and it's the device we're saying bye to.
π DESCRIPTION π
so bdx_remove gets called by the PCI subsystem to slide into the driver's DMs and be like "hey bestie, you gotta release this PCI device." π it's a heads-up, not a suggestion.
the way this happens is lowkey two vibes:
- it could be caused by a Hot-Plug event π₯ (device showing up or dipping out mid-party), or
- it could be because the driver is going to be removed from memory π (like, the whole driver, gone, no more).
either way, bdx_remove is your girl. she gets the memo, you release the device, everyone moves on. periodt. π
β SEE ALSO β
Kernel file ./drivers/net/ethernet/tehuti/tehuti.c π and honestly the whole friend group of functions, all here, all linked, all (9):
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_close(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)
iykyk π
anyway that's the whole page, mwah π this one lives at ./drivers/net/ethernet/tehuti, it's dated October 2026, and it's filed under bdx_remove(9) β go read the others, they're all slaying in their own way π¦β¨
π¦ 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