idpf_ptp_info_to_adapter(9)
π 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 toptp_clock_infostruct. 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
- 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