can_rx_offload_offload_one(9)
π can_rx_offload_offload_one(9) π
okay so bestie, this is from the Kernel API Manual, and the page is literally can_rx_offload_offload_one. We're reading one CAN frame from HW, no cap. β¨
πΈ NAME πΈ
can_rx_offload_offload_one β Read one CAN frame from HW π
π¦ SYNOPSIS π¦
struct sk_buff * can_rx_offload_offload_one (struct can_rx_offload *offload , unsigned int n );
π ARGUMENTS π
offloadβ pointer to rx_offload contextnβ number of mailbox to read
β¨ DESCRIPTION β¨
The task of this function is to read a CAN frame from mailbox n from the device and return the mailbox's content as a struct sk_buff. Like, that's the whole main character energy of it. π«Ά
If struct can_rx_offload::skb_queue exceeds the maximal queue length (struct can_rx_offload::skb_queue_len_max) or no skb can be allocated, the mailbox contents is discarded by reading it into an overflow buffer. This way the mailbox is marked as free by the driver. Iconic free-the-mailbox behavior, fr fr. π₯
It gives you NULL if the mailbox n is empty. π
And it gives you ERR_PTR in case of an error. π
π RETURN π
A pointer to skb containing the CAN frame on success. Slay. π
β SEE ALSO β
Kernel file ./drivers/net/can/dev/rx-offload.c
xoxo, this came from ./drivers/net/can/dev, dated October 2026, and it's the can_rx_offload_offload_one(9) page πβ¨
π¦ 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