idpf_ptp_info_to_adapter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… idpf_ptp_info_to_adapter β€” like, the actual manual page, bestie

okay so real talk: this is a page from the Kernel API Manual, and it's literally the tiniest little glow-up function in the whole idpf PTP situation. no cap, it does exactly one thing and it does it flawlessly. main character energy for a one-liner tbh πŸŽ€


✨ NAME ✨

idpf_ptp_info_to_adapter β€” get driver adapter struct from ptp_clock_info

like… that's it. that's the whole job. you hand it a ptp_clock_info and it hands you back the adapter struct that owns it. reverse lookup core πŸ’…


🌸 SYNOPSIS 🌸

struct idpf_adapter * idpf_ptp_info_to_adapter (const struct
       ptp_clock_info *info );

so you call it, you pass the info, you get a struct idpf_adapter * back. clean. no cap. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • info β€” pointer to ptp_clock_info struct. yes bestie, that's the only thing it takes. one (1) argument. that's the whole vibe check and it passed πŸ™ˆ

πŸ‘‘ RETURN πŸ‘‘

pointer to the corresponding adapter struct πŸ’–

(translation: it gives you back the struct idpf_adapter * that matches the info you handed in. that's the entire plot. iconic.)


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/net/ethernet/intel/idpf/idpf_ptp.h
  • struct idpf_ptp_cmd(9)
  • enum idpf_ptp_access(9)
  • struct idpf_ptp_secondary_mbx(9)
  • enum idpf_ptp_tx_tstamp_state(9)
  • struct idpf_ptp_tx_tstamp_status(9)
  • struct idpf_ptp_tx_tstamp(9)
  • struct idpf_ptp_vport_tx_tstamp_caps(9)
  • struct idpf_ptp(9)
  • struct idpf_ptp_dev_timers(9)
  • idpf_ptp_is_vport_tx_tstamp_ena(9)
  • idpf_ptp_is_vport_rx_tstamp_ena(9)

ngl that's a whole friend group of PTP structs and helpers and honestly they all ate πŸ’€πŸ«Ά go read them if you want the full lore, iykyk.


lowkey reminder bestie: everything above is straight from the page, no extra tips, no made-up behaviour. i'm just here for the vibes, the facts are untouched 🧚

and that's a wrap! 🌈 this lil page lives at ./drivers/net/ethernet/intel/idpf, dated October 2026, and it's part of the Kernel API Manual β€” so like, cite it right when you quote it, periodt. mwah πŸ’œπŸŽ€

πŸ“¦ where this page comes from