xcan_get_berr_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xcan_get_berr_counter(9) β€” the Kernel API Manual, bestie edition ✨

okay so real talk, we're deep in the <pink>Kernel API Manual</pink> today and the star of the show is xcan_get_berr_counter β€” say it with me, bestie: x-can-get-berr-counter. iconic name, no notes πŸ’–


🌸 NAME 🌸

xcan_get_berr_counter β€” the error counter routine πŸŽ€ literally what it says on the tin, and she ate


πŸ¦‹ SYNOPSIS πŸ¦‹

int xcan_get_berr_counter (const struct net_device *ndev , struct
       can_berr_counter *bec );

that's it. that's the whole vibe check. two pointers and an int return, she's lowkey elegant πŸ’…


⭐ ARGUMENTS ⭐

  • ndev β€” pointer to a net_device structure 🫢 like, the NIC's whole personality lives in there
  • bec β€” pointer to a can_berr_counter structure 🌈 this is where the counter juice goes

two args, both pointers, both absolutely carrying the function. periodt πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

so basically? this is the driver error counter routine. that's the whole description fr fr β€” she's a specialist, she does one thing, and honestly? main character energy πŸ’€βœ¨

no cap, don't go looking for extra lore here, this is the entire canon πŸ’–


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰ slay
  • a failure value on error 😭 not slay, but that's the deal

🧚 SEE ALSO 🧚

okay this is the part where the group chat gets LONG, grab a snack bestie πŸ“

Kernel file ./drivers/net/can/xilinx_can.c, plus the whole friend group:

like I said. the entire friend group. iykyk πŸŒˆπŸ’«


πŸ’€ friendly reminder bestie: this page ships out of ./drivers/net/can and it's dated October 2026 β€” yes, the future, she's ahead of her time πŸ‘‘

k bye, go read your error counters, ily πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from