wx_set_rar(9)
β¨ wx_set_rar(9) β¨
okay so bestie, we're in the Kernel API Manual today and the main character is wx_set_rar β yes that's the whole name, it's giving "set Rx address register" and honestly? iconic. lowkey does exactly what it says on the tin. let's get into it π«Ά
πΈ SYNOPSIS πΈ
int wx_set_rar (struct wx *wx , u32 index , u8 *addr , u64 pools , u32
enable_addr );
yep, that's the whole vibe check: returns an int, takes five args, no cap. π
π ARGUMENTS π
wxβ pointer to the hardware structure. like, the actual device we're talking to, bestie πindexβ which receive address register you wanna write to. pick your slot, queen πaddrβ the address you're putting into that receive address register. the whole point tbh β¨poolsβ the VMDq "set" or "pool" index. that's the exact wording, don't come for me πenable_addrβ the set flag that says "yeah, this address is active". flip it and it's official β
π¦ DESCRIPTION π¦
okay so the tea is: this function puts an ethernet address into a receive address register. that's it, that's the whole gig. it literally takes addr and drops it into the register you pointed at with index, and enable_addr is the little flag that says whether the address is active. simple, clean, slayed. π§
π SEE ALSO π
first up, the kernel file it lives in β go read the source, iykyk:
./drivers/net/ethernet/wangxun/libwx/wx_hw.c
and now the whole friend group, in exactly the order the manpage gives them (yes, all of them, i'm not skipping anyone, they're all invited to the party π):
wx_irq_disable(9)wx_mng_present(9)wx_release_sw_sync(9)wx_acquire_sw_sync(9)wx_host_interface_command(9)wx_read_ee_hostif_data(9)wx_read_ee_hostif(9)wx_read_ee_hostif_buffer(9)wx_init_eeprom_params(9)wx_get_mac_addr(9)wx_clear_rar(9)wx_clear_vmdq(9)wx_init_uta_tables(9)wx_init_rx_addrs(9)wx_write_uc_addr_list(9)wx_mta_vector(9)wx_set_mta(9)wx_update_mc_addr_list(9)wx_write_mc_addr_list(9)wx_set_mac(9)wx_set_rxpba(9)wx_hpbthresh(9)wx_lpbthresh(9)wx_pbthresh_setup(9)wx_disable_sec_rx_path(9)wx_enable_sec_rx_path(9)wx_change_mtu(9)wx_configure_tx(9)wx_configure_rx(9)wx_disable_pcie_master(9)wx_stop_adapter(9)wx_get_pcie_msix_counts(9)wx_init_rss_key(9)wx_find_vlvf_slot(9)wx_set_vlvf(9)wx_set_vfta(9)wx_clear_vfta(9)wx_update_stats(9)wx_clear_hw_cntrs(9)wx_start_hw(9)
like, that's a whole group chat right there. go say hi π
π reminder bestie: only change the vibe, never the facts. every flag, every arg, every path stays exactly where it was. periodt.
and that's a wrap! this page came from ./drivers/net/ethernet/wangxun..., dated October 2026, and it's wx_set_rar(9) all the way down. 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