icss_iep_get_ptp_clock_idx(9)
π icss_iep_get_ptp_clock_idx(9) π
okay so bestie, welcome to the Kernel API Manual β yes, the actual kernel API manual, and yes, you're gonna understand this one, i promise π«Ά this page is literally about icss_iep_get_ptp_clock_idx, and no cap it's a tiny little function that just tells you which PTP clock you're working with. it's giving "one job, does it well" energy β¨
β¨ NAME β¨
icss_iep_get_ptp_clock_idx β the function that gets you the PTP clock index, using the IEP driver π
like, that's it. that's the whole vibe. she asks the IEP driver "hey, which PTP clock is this?" and the driver answers. iconic behavior honestly.
πΈ SYNOPSIS πΈ
int icss_iep_get_ptp_clock_idx (struct icss_iep *iep );
so it returns an int, and it takes exactly one thing: a struct icss_iep * that's literally named iep. short, sweet, slays π
π ARGUMENTS π
iepβ a pointer to the structure that represents the IEP. that's the whole argument. one pointer, no drama, no surprises. you hand her the IEP struct and she's off π¦
β RETURN β
the PTP clock index π β that's your answer, that's what you came for.
and if it's not registered? she returns -1. yep. not registered = -1, no exceptions, don't @ me π
π SEE ALSO π
- the kernel file
./drivers/net/ethernet/ti/icssg/icss_iep.cβ go read the source bestie, it's right there π icss_iep_get_count_hi(9)icss_iep_get_count_low(9)icss_iep_settime(9)icss_iep_gettime(9)
the whole IEP friend group fr fr β go say hi to the rest of them π§
ok genuine heads up: if that index comes back as-1, that's the "not registered" signal. don't go treating-1like a valid clock index, that's the trap π
and that's the page!! mwah π this little love letter lives under ./drivers/net/ethernet/ti/icssg, dated October 2026, straight from the Kernel API Manual β go off, you now know icss_iep_get_ptp_clock_idx. periodt. ππ
π¦ 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