e1000e_close(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… e1000e_close(9) β€” the Kernel API Manual girlies' edition ✨

okay so this is a page from the Kernel API Manual, section 9, and the function is e1000e_close. bestie, it's literally the "turn the NIC off" one. let's go πŸŽ€


🌸 NAME 🌸

e1000e_close β€” disables a network interface. that's it. that's the whole vibe check πŸ’…


✨ SYNOPSIS ✨

int e1000e_close (struct net_device *netdev );

like, it takes exactly one thing and gives you back an int. no cap. πŸ¦‹


🫢 ARGUMENTS 🫢

  • netdev β€” the network interface device structure. the whole entire netdev. the main character, honestly πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so it returns 0 β€” and the way that this is not allowed to fail?? iconic. no error path, no drama, just 0. periodt ✨

the close entry point gets called when an interface is de-activated by the OS. like, the OS said "you're done, girl" and the driver is like "okay respect." at this point the hardware is still under the driver's control, but it needs to be disabled β€” so it's not gone, it's just... not doing anything rn πŸ™ˆ

and then the actual work: a global MAC reset is issued to stop the hardware, and all transmit and receive resources are freed. boom. freed. every single TX and RX resource. we love a clean teardown πŸ§ΉπŸ’œ

fr fr, this one always returns 0 β€” the close path is not the place for failure and the source is very clear about that 😭

πŸ”₯ SEE ALSO πŸ”₯

the kernel file for this one lives at ./drivers/net/ethernet/intel/e1000e/netdev.c β€” go read it, iykyk πŸ“–

and here's the whole friend group like a giant group chat, keeping every single one because we don't leave anyone on read πŸ’€:

__ew32_prepare(9), e1000_regdump(9), e1000e_dump(9), e1000_desc_unused(9), e1000e_systim_to_hwtstamp(9), e1000e_rx_hwtstamp(9), e1000_receive_skb(9), e1000_rx_checksum(9), e1000_alloc_rx_buffers(9), e1000_alloc_rx_buffers_ps(9), e1000_alloc_jumbo_rx_buffers(9), e1000_clean_rx_irq(9), e1000e_tx_hwtstamp_work(9), e1000_clean_tx_irq(9), e1000_clean_rx_irq_ps(9), e1000_clean_jumbo_rx_irq(9), e1000_clean_rx_ring(9), e1000_intr_msi(9), e1000_intr(9), e1000_configure_msix(9), e1000e_set_interrupt_capability(9), e1000_request_msix(9), e1000_request_irq(9), e1000_irq_disable(9), e1000_irq_enable(9), e1000e_get_hw_control(9), e1000e_release_hw_control(9), e1000_alloc_ring_dma(9), e1000e_setup_tx_resources(9), e1000e_setup_rx_resources(9), e1000_clean_tx_ring(9), e1000e_free_tx_resources(9), e1000e_free_rx_resources(9), e1000_update_itr(9), e1000e_write_itr(9), e1000_alloc_queues(9), e1000e_poll(9), e1000e_vlan_filter_disable(9), e1000e_vlan_filter_enable(9), e1000e_vlan_strip_disable(9), e1000e_vlan_strip_enable(9), e1000_configure_tx(9), e1000_setup_rctl(9), e1000_configure_rx(9), e1000e_write_mc_addr_list(9), e1000e_write_uc_addr_list(9), e1000e_set_rx_mode(9), e1000e_get_base_timinca(9), e1000e_config_hwtstamp(9), e1000_configure(9), e1000e_power_up_phy(9), e1000_power_down_phy(9), e1000_flush_tx_ring(9), e1000_flush_rx_ring(9), e1000_flush_desc_rings(9), e1000e_systim_reset(9), e1000e_reset(9), e1000e_trigger_lsc(9), e1000e_down(9), e1000e_sanitize_systim(9), e1000e_read_systim(9), e1000e_cyclecounter_read(9), e1000_sw_init(9), e1000_intr_msi_test(9), e1000_test_msi_interrupt(9), e1000_test_msi(9), e1000e_open(9), e1000_set_mac(9), e1000e_update_phy_task(9), e1000_update_phy_info(9), e1000e_update_phy_stats(9), e1000e_update_stats(9), e1000_phy_read_status(9), e1000_watchdog(9), e1000_tx_timeout(9), e1000e_get_stats64(9), e1000_change_mtu(9), e1000e_hwtstamp_set(9), __e1000e_disable_aspm(9), e1000e_disable_aspm(9), e1000e_disable_aspm_locked(9), e1000_netpoll(9), e1000_io_error_detected(9), e1000_io_slot_reset(9), e1000_io_resume(9), e1000_probe(9), e1000_remove(9), e1000_init_module(9), e1000_exit_module(9) 🌈⭐


that's the whole page, bestie 🫢 this drop came from ./drivers/net/ethernet/intel/e... and it's dated October 2026 β€” so like, future girlie energy fr πŸ’…βœ¨ ily, go free those TX/RX resources πŸŽ€πŸ’–

πŸ“¦ where this page comes from