i40e_ptp_create_clock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ i40e_ptp_create_clock(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a lil kernel function in the i40e driver and it's literally the moment a PTP clock device gets born for userspace πŸŽ€


🌸 NAME 🌸

i40e_ptp_create_clock β€” create a PTP clock device for userspace, slay


πŸ¦‹ SYNOPSIS πŸ¦‹

long i40e_ptp_create_clock (struct i40e_pf *pf );

πŸ’– ARGUMENTS πŸ’–

  • pf β€” the board private structure 🫢 that's the whole personality of this argument ngl

πŸ‘‘ DESCRIPTION πŸ‘‘

So this function creates a new PTP clock device ✨ that's the whole vibe.

It only creates one if we don't already have one, so it's highkey safe to call whenever 😌 no cap, it won't come for you.

It will return an error if it can't create one, but it returns success if we already have a device πŸ’€ like okay go off, idempotent king.

It should be used by i40e_ptp_init to create the clock initially, and it also prevents global resets from creating new clock devices πŸ”₯ that's the whole point, bestie, don't let the resets come in and start making duplicate clocks πŸ™ˆ


🧚 SEE ALSO 🧚

Kernel file ./drivers/net/ethernet/intel/i40e/i40e_ptp.c πŸ’œ

and the whole friend group, no one gets left out:


okay and that's the whole page bestie, no crumbs left πŸ“

this lil masterpiece lives in ./drivers/net/ethernet/intel/i40e, it's dated October 2026, and it's filed under i40e_ptp_create_clock(9) β€” main character energy fr fr πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from