setup_nic_devices(9)
πΈ setup_nic_devices(9) β the Kernel API Manual moment πΈ
okay so this is setup_nic_devices, straight out of the Kernel API Manual, and honestly? she's a little function with a big job and i need you to respect her π
β¨ NAME β¨
setup_nic_devices β literally here to set up network interfaces, that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
int setup_nic_devices (struct octeon_device *octeon_dev );
β¨ ARGUMENTS β¨
octeon_devβ the octeon device, bestie. that's it. that's the argument π
β¨ DESCRIPTION β¨
so here's the tea π β this one gets called during init time for each device. every single one. no skipping, no shortcuts, we do the work π€
it assumes the NIC is already up and running β like, she's not gonna boot it for you, she's gonna assume you already did that part. so if it's not up? that's on you, not her π
and the link information for each interface? that gets passed in through link_info β¨ that's where the good stuff lives.
β¨ SEE ALSO β¨
the kernel file is right here, go read it, i believe in you π:
./drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
and now the whole friend group, because these functions all hang out together π:
pcierror_quiesce_device(9)cleanup_aer_uncorrect_error_status(9)stop_pci_io(9)liquidio_pcie_error_detected(9)print_link_info(9)octnet_link_status_change(9)setup_link_status_change_wq(9)update_link_status(9)liquidio_vf_probe(9)octeon_pci_flr(9)octeon_destroy_resources(9)send_rx_ctrl_cmd(9)liquidio_destroy_nic_device(9)liquidio_stop_nic_module(9)liquidio_vf_remove(9)octeon_pci_os_setup(9)free_netbuf(9)free_netsgbuf(9)free_netsgbuf_with_resp(9)liquidio_open(9)liquidio_stop(9)get_new_flags(9)liquidio_set_mcast_list(9)liquidio_set_mac(9)liquidio_xmit(9)liquidio_tx_timeout(9)liquidio_init_nic_module(9)octeon_device_init(9)
like, that's the whole group chat, iykyk π
ok that's the page!! mwah π
and for the cute sign-off: this one comes from the source at ./drivers/net/ethernet/cavium/..., dated October 2026, and yeah β it's setup_nic_devices(9) all the way down, periodt πβ
π¦ 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