STRUCT HTE_DEVICE(9)
π struct hte_device(9) β like, the HTE abstract device, bestie π¦
okay so this page lives in the Kernel API Manual and it's literally about struct hte_device β the HTE abstract device. yes, the whole entire vibe of this page is one struct. she's the main character. π
β¨ NAME β¨
struct hte_device β the HTE abstract device, fr fr π
πΈ SYNOPSIS πΈ
bestie. look at her. she's gorgeous:
struct hte_device {
u32 nlines;
atomic_t ts_req;
struct device *sdev;
struct dentry *dbg_root;
struct list_head list;
struct hte_chip *chip;
struct module *owner;
struct hte_ts_info ei[];
};
π Members π
okay, member-by-member breakdown, no skipping, i promise π«Ά
nlinesβ how many entities this device supports. that's the count, periodt. β¨ts_reqβ the total number of entities requested. like, all of them. πsdevβ the device that gets used in all the various debug prints. she's the one showing up in the logs πdbg_rootβ the root directory for debug fs. literally the home base for the debug filesystem πlistβ a list node, used to store thehte_devicefor each provider. keepin' everyone organized ποΈchipβ the HTE chip providing this HTE device. she didn't come from nowhere, she has a supplier π§ownerβ helps prevent removal of modules when in use. very much the "don't touch, we're using that" energy πeiβ timestamp information. the clock stuff. the timey-wimey bit β
it's giving "small struct, big responsibilities" ngl π
π SEE ALSO π
go read these next, bestie, they're all in the kernel file ./drivers/hte/hte.c:
struct hte_ts_info(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)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)
like, read them all, don't be lazy ππ
aaaand that's the whole page!! sourced straight from ./drivers/hte, dated October 2026, and yeah β she's still struct hte_device(9) at the end of the day. slay, go forth and timestamp things πππ«
π¦ 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