devm_hte_request_ts_ns(9)
π devm_hte_request_ts_ns(9) π
okay bestie, welcome to the Kernel API Manual β¨ β this one's a resource-managed API to request and enable hardware timestamp in nanoseconds. no cap, it's a whole vibe. π
β¨ NAME β¨
devm_hte_request_ts_ns β the resource managed API that requests and enables hardware timestamp in nanoseconds. she does both. main character energy fr fr π
π¦ SYNOPSIS π¦
int devm_hte_request_ts_ns (struct device *dev , struct hte_ts_desc
*desc , hte_ts_cb_t cb , hte_ts_sec_cb_t tcb , void *data );
πΈ ARGUMENTS πΈ
devβ the HTE consumer/client device. that's your device bestie, say hi πdescβ a pre-allocated and initialized timestamp descriptor. you gotta bring your own, already set up. no shortcuts πcbβ the callback that pushes the timestamp data to the consumer. this is the one doing the actual delivering π¬tcbβ optional callback. if you provide it, the subsystem initializes a workqueue for it. it gets called whencbreturnsHTE_RUN_SECOND_CB. yes, that's the exact flag, write it down πdataβ client data, used during both thecbandtcbcallbacks. shared snack bowl energy π
π DESCRIPTION π
the entity here is provider specific β think GPIO lines, signals, buses, etc... (yes, the original really does trail off with three dots, she's mysterious like that β¨).
the API allocates all the necessary resources and enables the timestamp. then β and this is the iconic part β it deallocates and disables automatically when the consumer exits. that's the managed in resource managed, bestie. no manual cleanup, no tears ππ«Ά
π₯ CONTEXT π₯
Holds mutex lock. π so like, behave.
β RETURN β
Returns 0 on success, or a negative error code on failure. that's it, that's the whole vibe check π
π SEE ALSO π
- Kernel file
./drivers/hte/hte.c 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_ts_get(9)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)
like a whole friend group of functions, go say hi to all of them π§π
and that's the page!! mwah π this little read dropped from ./drivers/hte back in October 2026 β iconic date, iconic folder, and honestly? you ate that. 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