axienet_setoptions(9)
π¦ axienet_setoptions β the Kernel API Manual glow-up π¦
okay so this one lives in the Kernel API Manual and honestly it's a lil function that does exactly what it says on the tin, and we love that for it π
β¨ NAME β¨
axienet_setoptions β Set an Axi Ethernet option π
πΈ SYNOPSIS πΈ
void axienet_setoptions (struct net_device *ndev , u32 options );
like yes bestie that's the whole signature, she's tiny, she's iconic, she's void π₯
π ARGUMENTS π
ndevβ Pointer to thenet_devicestructure. yep, the net_device, the main character of every net driver fr fr πoptionsβ Option to be enabled/disabled π«Ά this is the vibe check you're passing in
π§ DESCRIPTION π§
okay so picture this: the Axi Ethernet core is not a one-trick pony, she has multiple features and every single one of them can be selectively turned on or off β like little switches, but for hardware π
the typical options? lowkey iconic list ngl:
- the jumbo frame option π
- the basic VLAN option π
- the promiscuous mode option π
- etc.
so what does this function actually do? it sets or clears these options in the Axi Ethernet hardware β that's it, that's the whole job, and she does it well β¨
and how does she do it, you ask? through the axienet_option structure β the whole thing runs through it, no cap π«Ά
β SEE ALSO β
first up, the kernel file where all this magic actually lives:
./drivers/net/ethernet/xilinx/xilinx_axienet_main.c
and then the full squad, the whole friend group, every single one of them, in order, no skips π :
axienet_dma_in32(9)axienet_dma_bd_release(9)axienet_calc_cr(9)axienet_coalesce_params(9)axienet_dma_start(9)axienet_dma_bd_init(9)axienet_set_mac_address(9)netdev_set_mac_address(9)axienet_set_multicast_list(9)axienet_dma_stop(9)axienet_device_reset(9)axienet_free_tx_chain(9)axienet_check_tx_bd_space(9)axienet_dma_tx_cb(9)axienet_start_xmit_dmaengine(9)axienet_tx_poll(9)axienet_start_xmit(9)axienet_dma_rx_cb(9)axienet_rx_poll(9)axienet_tx_irq(9)axienet_rx_irq(9)axienet_eth_irq(9)axienet_rx_submit_desc(9)axienet_init_dmaengine(9)axienet_init_legacy_dma(9)axienet_open(9)axienet_stop(9)axienet_change_mtu(9)axienet_poll_controller(9)axienet_ethtools_get_drvinfo(9)axienet_ethtools_get_regs_len(9)axienet_ethtools_get_regs(9)axienet_ethtools_get_pauseparam(9)axienet_ethtools_set_pauseparam(9)axienet_update_coalesce_rx(9)axienet_dim_coalesce_count_rx(9)axienet_rx_dim_work(9)axienet_update_coalesce_tx(9)axienet_ethtools_get_coalesce(9)axienet_ethtools_set_coalesce(9)axienet_dma_err_handler(9)axienet_probe(9)
ngl bestie, this is a kernel API page, so like β respect the hardware, pass real options, and don't go inventing flags that aren't in the axienet_option structure, iykyk π
and that's the whole page!! π this lil beauty comes to you straight from ./drivers/net/ethernet/xilinx, dated October 2026, and it's literally titled axienet_setoptions(9) β slay, periodt, mwah πβ¨π¦
π¦ 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