emac_devioctl(9)
π emac_devioctl(9) β like, the EMAC adapter ioctl, bestie
okay so this is a page straight out of the Kernel API Manual, and it's about emac_devioctl β the EMAC adapter ioctl. yes that's the whole vibe. it's short, it's sweet, it's giving "function that just does its job and leaves" β¨
πΈ NAME πΈ
emac_devioctl β EMAC adapter ioctl. that's it. that's the whole name. iconic minimalism honestly π
π¦ SYNOPSIS π¦
int emac_devioctl (struct net_device *ndev , struct ifreq *ifrq , int
cmd );
so it takes three things and hands you back an int, no cap π
β¨ ARGUMENTS β¨
ndevβ The DaVinci EMAC network adapter. this is the main character right here πifrqβ request parameter. yes that's the whole description, she's mysterious like that πcmdβ command parameter. also keeping it lowkey vague, we love a cryptic queen π
π₯ DESCRIPTION π₯
so this is the EMAC driver ioctl function. that's the entire flex. it handles the ioctl stuff for the EMAC driver and that's literally it π«Ά
it Returns success(0) or appropriate error code. so like, 0 means slay β
, and anything else is the universe telling you something went wrong π
ngl the manpage is kinda sparse on details here, so don't go inventing behaviour β what you see is what you get π
π SEE ALSO π
first off, the kernel file itself lives at ./drivers/net/ethernet/ti/davinci_emac.c β go read the source, iykyk π
and then the whole friend group, fr fr:
emac_get_drvinfo(9)emac_get_coalesce(9)emac_set_coalesce(9)emac_update_phystatus(9)hash_get(9)emac_hash_add(9)emac_hash_del(9)emac_add_mcast(9)emac_dev_mcast_set(9)emac_int_disable(9)emac_int_enable(9)emac_irq(9)emac_dev_xmit(9)emac_dev_tx_timeout(9)emac_set_type0addr(9)emac_set_type1addr(9)emac_set_type2addr(9)emac_setmac(9)emac_dev_setmac_addr(9)emac_hw_enable(9)emac_poll(9)emac_poll_controller(9)emac_dev_open(9)emac_dev_stop(9)emac_dev_getnetstats(9)davinci_emac_probe(9)davinci_emac_remove(9)davinci_emac_init(9)davinci_emac_exit(9)
like, that's a whole squad π go say hi to all of them.
and that's the page!! mwah π ok so the source path is ./drivers/net/ethernet/ti and this whole thing is dated October 2026, which is honestly so far away it's giving time traveler energy β bye bestie, go write some ioctl code π§ββοΈπ
π¦ 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