octep_ctrl_net_get_if_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… octep_ctrl_net_get_if_stats(9) β€” like, the Kernel API Manual girlies' favorite stats getter πŸŽ€

okay so bestie, welcome to the glow-up of octep_ctrl_net_get_if_stats ✨ this one lives in the Kernel API Manual and honestly? she's a whole vibe. she goes and grabs the interface statistics from firmware for you. no cap. πŸ¦‹


✨ NAME ✨

octep_ctrl_net_get_if_stats β€” get interface statistics from firmware πŸ’–


🌸 SYNOPSIS 🌸

int octep_ctrl_net_get_if_stats (struct octep_device *oct , int vfid ,
       struct octep_iface_rx_stats *rx_stats , struct octep_iface_tx_stats
       *tx_stats );

like, that's the whole signature. slay. πŸ“Ž


πŸŽ€ ARGUMENTS πŸŽ€

  • oct β€” a non-null pointer to struct octep_device. non-null, bestie, don't come at her with NULL, she will not be okay 😭
  • vfid β€” the index of the virtual function. iykyk πŸ‘‘
  • rx_stats β€” a non-null pointer to struct octep_iface_rx_stats. yes, also non-null. it's giving "please actually pass something" 🌸
  • tx_stats β€” a non-null pointer to struct octep_iface_tx_stats. third non-null of the day, we love consistency πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

okay so the return value is the whole storyline here:

  • 0 β€” on success. we ate. πŸ”₯
  • -errno β€” on failure. and not me having to say it: it's negative errno, so check it, don't ignore it πŸ™ˆ

that's literally the description. short queen. periodt. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

literally go read the kernel file: ./drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h β€” it's the source of truth, bestie πŸ“

and the whole friend group, in order:


okay that's the page!! mwah πŸ’‹ this lil manual page is brought to you by ./drivers/net/ethernet/marvell... and the month of October 2026 β€” and it's still out here answering to the name octep_ctrl_net_get_if_stats(9) 🫢 go get those firmware stats, bestie, you've got this πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from