stmmac_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… stmmac_ioctl(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's short and sweet β€” literally the door greeter for ioctls. let's get into it 🫢


✨ NAME ✨

stmmac_ioctl β€” the entry point for the Ioctl πŸ’« like, the one function everything knocks on the door first.


🌸 SYNOPSIS 🌸

int stmmac_ioctl (struct net_device *dev , struct ifreq *rq , int cmd );

that's the whole vibe check right there πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device pointer. yeah. just… the device πŸ’–
  • rq β€” an IOCTL specific structure, and lowkey the fun one β€” it can hold a pointer to a proprietary structure that's used to pass info along to the driver πŸ‘€ iykyk
  • cmd β€” the IOCTL command itself ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically it forwards the PHY ioctls to phylink 🧚 that's it. that's the whole job. it's giving middle-manager energy but in the slay way.


πŸ’œ RETURN πŸ’œ

zero on success πŸŽ‰ or a negative error code 😭 (bestie we've all been there)


πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is long β€” like, not me having to type all of these πŸ™ˆ but every single one is iconic in its own right, so here we go:


πŸ’€ real talk: no warnings, no deprecated options, no exit status weirdness on this page. it's just a chill little forwarding function. love that for us πŸ“

and that's the page, babe πŸŽ€ this masterpiece comes to you from ./drivers/net/ethernet/stmicro... and it's dated October 2026 β€” so mark your calendars, stmmac_ioctl(9) is forever. mwah πŸ’‹ slay 🌈

πŸ“¦ where this page comes from