i40e_ptp_set_pins(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

i40e_ptp_set_pins(9) πŸ’… β€” the Kernel API Manual, bestie edition

okay so you opened the i40e_ptp_set_pins(9) page from the Kernel API Manual and honestly? iconic choice. this is the little function that actually shoves your PTP pin settings into the hardware for a specific PF. let's get into it ✨


🌸 NAME 🌸

i40e_ptp_set_pins β€” set PTP pins in HW. that's it, that's the whole vibe πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int i40e_ptp_set_pins (struct i40e_pf *pf , struct
       i40e_ptp_pins_settings *pins );

like, literally just two structs in and an int out. slay πŸŽ€


✨ ARGUMENTS ✨

  • pf β€” the board private structure. your main character struct πŸ‘‘
  • pins β€” the PTP pins that are gonna get applied. the whole point, fr fr 🎯

πŸ’œ DESCRIPTION πŸ’œ

so what it does is: validate and set PTP pins in HW for a specific PF. that's the job, no cap.

return 0 on success πŸŽ‰ or a negative value on error 😭 β€” so bestie, please actually check the return value, i'm begging.

ngl the negative-number-on-error thing is real: 0 means good, anything negative means something went sideways πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the kernel file itself lives at ./drivers/net/ethernet/intel/i40e/i40e_ptp.c β€” go read it, iykyk πŸ“–

and here's the whole extended friend group, all of them, in order, because i would never leave anyone out 🫢:

  • i40e_ptp_extts0_work(9)
  • i40e_is_ptp_pin_dev(9)
  • i40e_can_set_pins(9)
  • i40_ptp_reset_timing_events(9)
  • i40e_ptp_verify(9)
  • i40e_ptp_read(9)
  • i40e_ptp_write(9)
  • i40e_ptp_convert_to_hwtstamp(9)
  • i40e_ptp_adjfine(9)
  • i40e_ptp_set_1pps_signal_hw(9)
  • i40e_ptp_adjtime(9)
  • i40e_ptp_gettimex(9)
  • i40e_ptp_settime(9)
  • i40e_pps_configure(9)
  • i40e_pin_state(9)
  • i40e_ptp_enable_pin(9)
  • i40e_ptp_feature_enable(9)
  • i40e_ptp_get_rx_events(9)
  • i40e_ptp_rx_hang(9)
  • i40e_ptp_tx_hang(9)
  • i40e_ptp_tx_hwtstamp(9)
  • i40e_ptp_rx_hwtstamp(9)
  • i40e_ptp_set_increment(9)
  • i40e_ptp_hwtstamp_get(9)
  • i40e_ptp_free_pins(9)
  • i40e_ptp_set_pin_hw(9)
  • i40e_ptp_set_led_hw(9)
  • i40e_ptp_init_leds_hw(9)
  • i40e_ptp_set_pins_hw(9)
  • i40e_ptp_alloc_pins(9)
  • i40e_ptp_set_timestamp_mode(9)
  • i40e_ptp_hwtstamp_set(9)
  • i40e_init_pin_config(9)
  • i40e_ptp_create_clock(9)
  • i40e_ptp_save_hw_time(9)
  • i40e_ptp_restore_hw_time(9)
  • i40e_ptp_init(9)
  • i40e_ptp_stop(9)

like, that's a lot of siblings but every single one of them matters πŸ’€πŸŒˆ


πŸŽ€ sign-off πŸŽ€

this little baddie comes to you from ./drivers/net/ethernet/intel/i40e, dated October 2026. go set those pins, bestie β€” and remember: check the return value πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from