STRUCT HTE_OPS(9)
π struct hte_ops(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for struct hte_ops, aka the HTE operations set by providers. yes it's kernel stuff, no it's not scary, we're gonna get through it together π«Ά
β¨ NAME β¨
struct hte_ops β the HTE operations set by providers. that's it, that's the whole vibe check π
π SYNOPSIS π
here's the struct in all its glory, literally copy-paste it exactly, don't be weird about it:
struct hte_ops {
int (*request)(struct hte_chip *chip, struct hte_ts_desc *desc, u32 xlated_id);
int (*release)(struct hte_chip *chip, struct hte_ts_desc *desc, u32 xlated_id);
int (*enable)(struct hte_chip *chip, u32 xlated_id);
int (*disable)(struct hte_chip *chip, u32 xlated_id);
int (*get_clk_src_info)(struct hte_chip *chip, struct hte_clk_info *ci);
};
look at those function pointers. main character energy, honestly π
πΈ MEMBERS πΈ
so each of these is a hook, and here's the tea on every single one:
requestβ the hook for requesting a HTE timestamp. returns0on success, non-zero for failures. simple as that β¨releaseβ the hook for releasing a HTE timestamp. returns0on success, non-zero for failures. letting it go, icon behavior π¦enableβ the hook to enable the specified timestamp. returns0on success, non-zero for failures. turn it on π₯disableβ the hook to disable the specified timestamp. returns0on success, non-zero for failures. turn it off, respectfully πget_clk_src_infoβ the hook to get the clock information the provider uses to timestamp. returns0for success and a negative error code for failure. and ooh, on success the HTE subsystem fills up the providedstruct hte_clk_infoβ so that struct is getting filled, no cap π§
π DESCRIPTION π
okay so the xlated_id parameter β that's the little messenger bestie. it's used to communicate between the HTE subsystem and the providers, and it gets translated by the provider. so like, the provider is the one doing the translating here, that's its whole job π
π SEE ALSO π
go read these too, they're all in the kernel file ./include/linux/hte.h:
enum hte_edge(9)enum hte_return(9)struct hte_ts_data(9)struct hte_clk_info(9)hte_ts_cb_t(9)hte_ts_sec_cb_t(9)struct hte_line_attr(9)struct hte_ts_desc(9)struct hte_chip(9)
like a little friend group of manpages, we love to see it π
ngl bestie, if you're writing a provider you're gonna live in this struct. read the docs, return your 0s, and slay β¨
and that's the page!! mwah π this one came from ./include/linux, dated October 2026 β see you in the next manpage, bye bestie ππ
π¦ 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