xcan_rx_poll(9)
π xcan_rx_poll π
okay bestie, welcome to xcan_rx_poll(9) β it's a Kernel API Manual page and it's literally the poll routine for rx packets (NAPI). yes, we're in the CAN driver trenches today and we're gonna slay it π¦
β¨ NAME β¨
xcan_rx_poll β the poll routine for rx packets, and yes it's NAPI, iykyk π
β¨ SYNOPSIS β¨
int xcan_rx_poll (struct napi_struct *napi , int quota );
like, that's the whole vibe. two args, one int coming back at you π
β¨ ARGUMENTS β¨
napiβ a pointer to thenapistructure. that's it, that's the whole thing, she's just a pointer π«quotaβ the max number of rx packets to be processed. think of it as the packet budget, and we do not go over budget bestie π
β¨ DESCRIPTION β¨
so this is the poll routine for the rx part, periodt. it processes the packets up to that maximum quota value β no more, no less, the girl knows her limits π
β¨
ngl it's a short one but she's lowkey the main character of the receive path π
β¨ RETURN β¨
it returns the number of packets received π«Ά that's the whole return value. count 'em and hand 'em over, no cap π¦
β¨ SEE ALSO β¨
bestie there's a whole friend group here, like an entire group chat of xilinx CAN functions, and every single one of them is invited πΈ
first up, the source file itself: the kernel file ./drivers/net/can/xilinx_can.c π
then the ensemble cast, in order, no one gets left out:
struct xcan_priv(9)xcan_write_reg_le(9)xcan_read_reg_le(9)xcan_write_reg_be(9)xcan_read_reg_be(9)xcan_rx_int_mask(9)set_reset_mode(9)xcan_set_bittiming(9)xcan_chip_start(9)xcan_do_set_mode(9)xcan_write_frame(9)xcan_start_xmit_fifo(9)xcan_start_xmit_mailbox(9)xcan_start_xmit(9)xcan_rx(9)xcanfd_rx(9)xcan_current_error_state(9)xcan_set_error_state(9)xcan_update_error_state_after_rxtx(9)xcan_err_interrupt(9)xcan_state_interrupt(9)xcan_rx_fifo_get_next_frame(9)xcan_tx_interrupt(9)xcan_interrupt(9)xcan_chip_stop(9)xcan_open(9)xcan_close(9)xcan_get_berr_counter(9)xcan_get_auto_tdcv(9)xcan_suspend(9)xcan_resume(9)xcan_runtime_suspend(9)xcan_runtime_resume(9)xcan_probe(9)xcan_remove(9)
like, go read them all, they're all icons in their own right π
lowkey reminder: this is kernel documentation, so if you're poking at the rx path, read the actual source too β the manpage is the vibe check, not the whole story π§
and that's the page bestie!! π this lil beauty lives down in ./drivers/net/can and it's dated October 2026 β so yeah, she's from the future and she's still iconic πβ mwah, go process those packets responsibly π
π¦ 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