arc_emac_poll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a napi_struct structure. 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 😭:


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