arc_emac_poll(9)
π arc_emac_poll β NAPI poll handler π
okay bestie, welcome to the Kernel API Manual entry for arc_emac_poll β¨ this is the little function that shows up when the network stack is like "hey, got any packets for me?" and this driver has to answer. Let's get into it π
πΈ SYNOPSIS πΈ
int arc_emac_poll (struct napi_struct *napi , int budget );
that's the whole vibe: you hand it a napi and a budget, and it gives you back an int. simple, iconic, no notes π
π¦ ARGUMENTS π¦
napiβ pointer to anapi_structstructure. yes, THE napi struct, the main character of the NAPI world π this is the one you're polling for.budgetβ how many BDs to process on 1 call. that's it, that's the cap. one call, this many BDs, no overachieving π
β RETURN β
Number of processed BDs π that's the count you get back β the actual number of BDs it chewed through on this call. fr fr, that's the return value, nothing else.
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/net/ethernet/arc/emac_main.c and honestly the whole friend group is here, go say hi π:
arc_emac_tx_avail(9)arc_emac_adjust_link(9)arc_emac_get_drvinfo(9)arc_emac_tx_clean(9)arc_emac_rx(9)arc_emac_rx_miss_handle(9)arc_emac_rx_stall_check(9)arc_emac_intr(9)arc_emac_open(9)arc_emac_set_rx_mode(9)arc_free_tx_queue(9)arc_free_rx_queue(9)arc_emac_stop(9)arc_emac_stats(9)arc_emac_tx(9)arc_emac_set_address(9)arc_emac_restart(9)
lowkey a whole ecosystem in one file, and you thought polling was just one function π
and that's the page!! π«Ά brought to you by ./drivers/net/ethernet/arc, dated October 2026, in the Kernel API Manual β slay, go poll something πβ¨
π¦ 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