igc_ptp_set_timestamp_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… igc_ptp_set_timestamp_mode πŸ’…

okay so bestie, this is a page from the Kernel API Manual (yes, the Kernel API Manual, we're literally in the big leagues now) and it's all about igc_ptp_set_timestamp_mode β€” the function that sets up the hardware for timestamping. that's it. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

igc_ptp_set_timestamp_mode β€” setup hardware for timestamping ⏱️✨

like, it literally goes and gets the hardware ready so your packets can get stamped with times. no cap, that's the job.


🌸 SYNOPSIS 🌸

int igc_ptp_set_timestamp_mode (struct igc_adapter *adapter , struct
       kernel_hwtstamp_config *config );

it gives you back an int, takes two pointers, and one of them is a struct igc_adapter * called adapter while the other is a struct kernel_hwtstamp_config * called config. those names matter, bestie β€” do not rename them, the compiler will simply pass away πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • adapter β€” the networking device structure. it's giving "this is the NIC we're talking about" energy. it's the main character of this whole operation πŸ‘‘
  • config β€” the hwtstamp configuration. this is the little bundle of settings that tells the hardware what timestamping behaviour you actually want. the blueprint, if you will πŸ¦‹

πŸ”₯ RETURN πŸ”₯

  • 0 β€” success!! slay!! it worked!! βœ¨πŸŽ‰
  • a negative errno code β€” nope, something went sideways, and the negative errno tells you what πŸ™ˆ

that's the whole return contract, fr fr. zero means we ate, negative means we did not.


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file that hosts all this goodness lives at ./drivers/net/ethernet/intel/igc/igc_ptp.c β€” go read it, it's right there, iykyk πŸ“–πŸ’œ

and here's the whole friend group, every single one of them, no skips:

literally the entire PTP cinematic universe 🌈⭐


bestie reminder: 0 = success, negative errno = not success. don't get it twisted πŸ’…

okay that's the page!! this icon was brought to you by the fine people over at ./drivers/net/ethernet/intel/igc, dated October 2026 β€” mwah, love u, go timestamp something πŸ“πŸ§šπŸ’–

πŸ“¦ where this page comes from