igc_ptp_set_timestamp_mode(9)
π 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:
igc_ptp_systim_to_hwtstamp(9)igc_ptp_rx_pktstamp(9)igc_ptp_clear_xsk_tx_tstamp_queue(9)igc_ptp_tx_hwtstamp(9)igc_ptp_tx_tstamp_event(9)igc_ptp_hwtstamp_set(9)igc_ptp_hwtstamp_get(9)igc_ptp_init(9)igc_ptp_suspend(9)igc_ptp_stop(9)igc_ptp_reset(9)
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
- 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