ice_ptp_gpio_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ice_ptp_gpio_enable(9) β€” bestie's guide to enabling/disabling the extra lil' PHC features πŸ’–

okay so first things first: this page lives in the Kernel API Manual, and the function we're obsessing over today is ice_ptp_gpio_enable ✨ (yes the (9) is part of the name, it's giving kernel-section realness, we don't question it).


🌸 NAME 🌸

ice_ptp_gpio_enable β€” literally just Enable/disable ancillary features of PHC. that's it, that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_ptp_gpio_enable (struct ptp_clock_info *info , struct
       ptp_clock_request *rq , int on );

look at her. three args, returns an int, no notes. main character energy fr πŸ’…


✨ ARGUMENTS ✨

  • info β€” the driver's PTP info structure. it's the struct ptp_clock_info * bestie, the whole context, the moment. πŸ‘‘
  • rq β€” the requested feature to change. yes it's a struct ptp_clock_request *, yes it's telling you what we're flipping on or off. πŸ¦‹
  • on β€” the enable/disable flag, as an int. is it on or is it not, that is the question. ⭐

πŸ”₯ RETURN πŸ”₯

0 on success β€” slay, we ate, no cap.

a negative error code otherwise β€” not slay, but like, at least it's honest 😭


🌈 SEE ALSO 🌈

the whole friend group, no one left out, we love a complete roster 🫢

first up, the kernel file herself:

  • Kernel file ./drivers/net/ethernet/intel/ice/ice_ptp.c

then the cast, in order, exactly as listed, do not come for me about the order:

iykyk 🧚


ngl bestie, if you only remember one thing: info is the driver's PTP info struct, rq is the feature you're changing, on is the enable/disable flag, and you get 0 on success or a negative error code otherwise. periodt. πŸ’œ

and that's the page!! big kiss to the source ./drivers/net/ethernet/intel/ice and to the October 2026 date stamp β€” this one was born ✨ recent ✨ and we're obsessed. go forth and flip those ancillary PHC features, you gorgeous kernel gremlin πŸ’…πŸŽ€πŸ“

πŸ“¦ where this page comes from