arc_emac_get_drvinfo(9)
π arc_emac_get_drvinfo
okay so real talk, this is a page straight out of the Kernel API Manual (that's the manual name bestie, we're in the big-leagues section 9), and honestly? it's a lil one. but it slays at the one thing it does, and i'm gonna walk you through it π«Ά
β¨ NAME β¨
arc_emac_get_drvinfo β literally just: get EMAC driver information. that's it. that's the whole gig π
πΈ SYNOPSIS πΈ
void arc_emac_get_drvinfo (struct net_device *ndev , struct ethtool_drvinfo *info );
two pointers walk into a function and neither one of them comes back out with a return value. void queen behavior, we love a function that doesn't need to prove anything π
π ARGUMENTS π
ndevβ pointer to anet_devicestructure. your network device, your main character β¨infoβ pointer to anethtool_drvinfostructure. this is the lil container the driver info gets poured into π
π₯ DESCRIPTION π₯
so what does it actually do? it implements the ethtool command for getting the driver information. that's the vibe check, and it passes β
and like⦠how do you even trigger this bad boy? super easy, no cap. just issue
ethtool -i ethX
at the linux prompt and boom, this function gets executed. that's it. ethtool -i on your ethX interface = this function runs. iconic, lowkey π¦
ngl bestie, that's the whole description. short manpage, but it ate and left no crumbs π
β SEE ALSO β
the kernel file to go peek at is ./drivers/net/ethernet/arc/emac_main.c β that's where the magic lives π§
and here's the whole friend group, no one left behind fr fr:
arc_emac_tx_avail(9)arc_emac_adjust_link(9)arc_emac_tx_clean(9)arc_emac_rx(9)arc_emac_rx_miss_handle(9)arc_emac_rx_stall_check(9)arc_emac_poll(9)arc_emac_intr(9)arc_emac_open(9)arc_emac_set_rx_mode(9)arc_free_tx_queue(9)arc_free_rx_queue(9)arc_emac_stop(9)arc_emac_stats(9)arc_emac_tx(9)arc_emac_set_address(9)arc_emac_restart(9)
that's a wrap bestie!! this page lives at ./drivers/net/ethernet/arc, it's dated October 2026, and it's filed under arc_emac_get_drvinfo(9) β go forth, run ethtool -i ethX, and get that driver info πβ¨π
π¦ 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