es58x_set_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… es58x_set_mode β€” like, the Kernel API Manual page for it ✨

Okay bestie, welcome to the Kernel API Manual entry for es58x_set_mode(9) β€” this is the lil' function that flips your network device into a different mode. It's short, it's iconic, let's go 🫢


✨ NAME ✨

es58x_set_mode β€” change network device mode. That's it. That's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

int es58x_set_mode (struct net_device *netdev , enum can_mode mode );

Literally just hand it a netdev and a mode and it returns an int. Periodt πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • netdev β€” the CAN network device itself. Your main character. πŸ‘‘
  • mode β€” either CAN_MODE_START, CAN_MODE_STOP or CAN_MODE_SLEEP. Those three, no cap, that's the whole roster 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, currently this function is only used to stop and restart the channel during a bus off event 😭 (c.f. es58x_rx_err_msg and drivers/net/can/dev.c:can_restart β€” those are literally the two only callers, iykyk).

That's it. That's the tea. Not me being obsessed with how narrow the scope is πŸ’€


⭐ RETURN ⭐

  • zero on success πŸ’–
  • errno when any error occurs πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

The kernel file ./drivers/net/can/usb/etas_es58x/es58x_core.c β€” that's where the magic lives ✨

And now the whole friend group, because they all showed up and we're not leaving anyone out 🧚:

Slay. All 47 of them, accounted for, not a single one missing πŸ’œ


Fr fr, if you're only here to stop or restart a channel after a bus off, you're in exactly the right place. Everyone else, go home πŸ’€

Okay that's the whole page, bestie β€” sign-off time πŸŽ€ This one lives under ./drivers/net/can/usb/etas_es58x and it's dated October 2026, so mark your calendar and go touch some grass 🌸✌️

πŸ“¦ where this page comes from