hte_ts_get(9)
π hte_ts_get(9) β like, the Kernel API Manual entry you actually wanna read
okay so bestie, welcome to hte_ts_get(9) from the Kernel API Manual β yes, that manual β and no cap, this one is short and sweet. It's the little function that sets up your HTE descriptor before anything else gets to touch it. Let's go π
β¨ NAME β¨
hte_ts_get β the function to initialize and obtain HTE desc. literally its whole job π
π¦ SYNOPSIS π¦
int hte_ts_get (struct device *dev , struct hte_ts_desc *desc , int
index );
πΈ ARGUMENTS πΈ
devβ the HTE consumer/client device π«Ά it's used in case of parsing the device tree node, iykyk.descβ a pre-allocated timestamp descriptor. pre-allocated, bestie, that part is on you πindexβ this index is used as an index to parseline_idfrom the device tree node if the node is present β¨.
π DESCRIPTION π
so the way this works: hte_ts_get initializes the consumer-provided HTE descriptor. that's the whole vibe check π
if the consumer has a device tree node, then index is used to parse the line id and other details from it π.
π¨ real talk: the function needs to be called before using any request APIs. like, before. not after, not "eh, somewhere in the vicinity." before. periodt π₯
π CONTEXT π
Holds mutex lock β β yes queen, it's locking, be aware of that when you're calling it from wherever you're calling it from π.
π RETURN π
Returns 0 on success or a negative error code on failure π (check it, bestie, don't just vibe past the return value).
π SEE ALSO π
- Kernel file
./drivers/hte/hte.cβ the source, go read it, it's giving main character energy π struct hte_ts_info(9)struct hte_device(9)hte_ts_put(9)hte_disable_ts(9)hte_enable_ts(9)of_hte_req_count(9)hte_request_ts_ns(9)devm_hte_request_ts_ns(9)hte_init_line_attr(9)hte_get_clk_src_info(9)hte_push_ts_ns(9)devm_hte_register_chip(9)
and that's the page, bestie!! π§ from ./drivers/hte, dated October 2026 β mwah π go forth and get those timestamps πβ¨π
π¦ 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