devm_hte_request_ts_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 when cb returns HTE_RUN_SECOND_CB. yes, that's the exact flag, write it down πŸ’€
  • data β€” client data, used during both the cb and tcb callbacks. 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 🌈

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