pch_gbe_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pch_gbe_ioctl β€” the Kernel API Manual moment ✨

okay so bestie, welcome to pch_gbe_ioctl(9), a Kernel API Manual entry, and honestly it's giving "small function, big responsibilities" πŸŽ€


✨ NAME ✨

pch_gbe_ioctl β€” controls register through a MII interface πŸ¦‹

like, yes, that's the whole pitch. it pokes at registers via the MII interface, iykyk πŸ’…


🌸 SYNOPSIS 🌸

int pch_gbe_ioctl (struct net_device *netdev , struct ifreq *ifr , int
cmd );

that signature is literally the whole vibe. three args, one int coming back at you 🫢


🧚 ARGUMENTS 🧚

  • netdev β€” the network interface device structure. it's the whole NIC's main character energy, no cap πŸ‘‘
  • ifr β€” a pointer to the ifr structure. yes, a pointer. we love a pointer πŸ’œ
  • cmd β€” the control command. this is what tells the function what to actually do, iconic behavior ⭐

πŸ”₯ RETURN πŸ”₯

  • 0 β€” successfully πŸŽ‰ slay, it worked
  • Negative value β€” failed 😭 not the vibe, something went sideways
bestie note: the manpage says "Successfully Negative value: Failed" β€” so like, 0 = good, anything negative = bad news bears πŸ’€

🌈 SEE ALSO 🌈

first up, the kernel file where all this lives:

./drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c

and now the full friend group, fr fr β€” every single one of these cuties is (9):

like, that's the entire extended universe right there πŸ’« go read them, i'll wait πŸ“


and that's the page, bestie!! πŸ§šβ€β™€οΈ this little cutie comes from ./drivers/net/ethernet/oki-sem... (that's the source string, truncated and all, i don't make the rules πŸ’€) and it's dated October 2026, filed under pch_gbe_ioctl(9). periodt πŸ’…βœ¨

πŸ“¦ where this page comes from