octep_ctrl_net_get_if_stats(9)
π 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 tostruct octep_device. non-null, bestie, don't come at her withNULL, she will not be okay πvfidβ the index of the virtual function. iykyk πrx_statsβ a non-null pointer tostruct octep_iface_rx_stats. yes, also non-null. it's giving "please actually pass something" πΈtx_statsβ a non-null pointer tostruct 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 negativeerrno, 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:
octep_ctrl_net_init(9)octep_ctrl_net_get_link_status(9)octep_ctrl_net_set_link_status(9)octep_ctrl_net_set_rx_state(9)octep_ctrl_net_get_mac_addr(9)octep_ctrl_net_set_mac_addr(9)octep_ctrl_net_get_mtu(9)octep_ctrl_net_set_mtu(9)octep_ctrl_net_get_link_info(9)octep_ctrl_net_set_link_info(9)octep_ctrl_net_recv_fw_messages(9)octep_ctrl_net_get_info(9)octep_ctrl_net_dev_remove(9)octep_ctrl_net_set_offloads(9)octep_ctrl_net_uninit(9)
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
- 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