stmmac_ptp_unregister(9)
β¨ 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'sstruct 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 β
- The kernel source file itself,
./drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.cβ go read it, it's where the real lore lives π stmmac_adjust_freq(9)stmmac_adjust_time(9)stmmac_get_time(9)stmmac_set_time(9)stmmac_get_syncdevicetime(9)stmmac_ptp_register(9)β the one that does the opposite, iykyk π
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
- 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