stmmac_ptp_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ stmmac_ptp_unregister ✨

Okay bestie, welcome to the Kernel API Manual πŸ’… this one's from the kernel docs, and it's about yeeting a PTP clock driver out of the kernel. Short page, but we're gonna make it iconic. πŸŽ€


🌸 NAME 🌸

stmmac_ptp_unregister β€” no cap, the original page literally just has a dash after this, so consider this your moment of mystery. πŸ•΅οΈβ€β™€οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

void stmmac_ptp_unregister (struct stmmac_priv *priv);

πŸ’– ARGUMENTS πŸ’–

  • priv β€” the driver's private structure, aka where all the driver's own personal secrets live. It's struct stmmac_priv * and you pass it straight in. Respect the pointer, bestie. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So here's the vibe: this function will remove/unregister the ptp clock driver from the kernel. That's it. That's the whole job. It's the un-register. The anti-register. The "we're so done here" of PTP clock drivers. πŸ’€

If stmmac_ptp_register(9) is the "hey bestie welcome to the kernel" moment, this is the "okay byeeee" moment. It takes your priv and handles the cleanup. No return value β€” it's void, so don't go looking for a status code, it's not giving you one. πŸ‘‘


⭐ SEE ALSO ⭐


Fr fr, this is the "clean up your room before you leave" function of the stmmac PTP world. Don't skip it. πŸ™ˆ

Alright bestie, that's the whole page β€” short and sweet like a good text back. This was pulled from the Kernel API Manual, from the source at ./drivers/net/ethernet/stmicro/..., dated October 2026, and it's literally called stmmac_ptp_unregister(9). Slay, go unregister something responsibly. πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from