register_mii_timestamper(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… register_mii_timestamper(9) β€” a Kernel API Manual moment πŸŽ€

Okay bestie, so this is a page from the Kernel API Manual and it's about register_mii_timestamper, and honestly it's short and sweet, so let's get into it ✨


🌸 NAME 🌸

register_mii_timestamper β€” enables a given port of an MII time stamper πŸ’–

Like, that's the whole vibe. It turns a port ON. Slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mii_timestamper * register_mii_timestamper (struct device_node
*node , unsigned int port );

That's it, that's the signature, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” the device tree node of the MII time stamp controller 🌳 like, which controller we're talking about, bestie.
  • port β€” the index of the port to be enabled πŸ”’ aka which one of its ports you want switched on.

⭐ DESCRIPTION ⭐

So what does it actually do? It returns a valid interface on success or ERR_PTR otherwise πŸ’€ That's the whole description. Short king of a description, honestly. But hey β€” at least you know what you're getting: either a real, valid interface, or an ERR_PTR telling you it didn't work out 😭


πŸ‘‘ SEE ALSO πŸ‘‘

iykyk, these are the friends in the same group chat 🫢


ngl bestie, remember: on failure you get ERR_PTR back, not a NULL β€” so vibe check your return value properly before you dereference anything πŸ’…

🌈 and that's the whole page!! sign-off time: this little number lives under ./drivers/net/phy in the Kernel API Manual, dated October 2026 β€” periodt, love that for us πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from