TARGET -> HOST EXTENDED STATISTICS UPLOAD(9)
π TARGET -> HOST EXTENDED STATISTICS UPLOAD(9) π
okay so this is a page straight outta the Kernel API Manual, and we're about to get into the nitty-gritty of the HTT target β host extended statistics upload confirmation message π
πΈ the actual name of this thing πΈ
target -> host extended statistics upload β yeah that's a mouthful bestie, but we move β¨
β¨ DESCRIPTION β¨
so. the following field definitions describe the format of the HTT target to host stats upload confirmation message. literally what it says on the tin π
this message contains a cookie echoed from the HTT hostβtarget stats upload request, which identifies which request the confirmation is for π and heads up: a single stats can span over multiple HTT stats indication due to the HTT message size limitation π so every HTT ext stats indication will have tag-length-value stats information elements π¦
the tag-length header for each HTT stats IND message also includes a status field, to indicate whether the request for the stat type in question was fully met, partially met, unable to be met, or invalid (if the stat type in question is disabled in the target) π
and a Done bit 1's indicate the end of the of stats info elements π β that's right, the D bit at 1 means we're wrapping up, periodt.
|31 16|15 12|11|10 8|7 5|4 0|
|--------------------------------------------------------------| |
reserved | msg type |
|--------------------------------------------------------------| |
cookie LSBs |
|--------------------------------------------------------------| |
cookie MSBs |
|--------------------------------------------------------------| |
stats entry length | rsvd | D| S | stat type |
|--------------------------------------------------------------| |
type-specific stats info | | (see
debugfs_htt_stats.h) |
|--------------------------------------------------------------| Header
fields:
π§ HEADER FIELDS π§
MSG_TYPEβ Bits 7:0. Purpose: identifies this is a extended statistics upload confirmation message. Value:0x1cβCOOKIE_LSBSβ Bits 31:0. Purpose: provide a mechanism to match a targetβhost stats confirmation message with its preceding hostβtarget stats request message. Value: MSBs of the opaque cookie specified by the host-side requestor πCOOKIE_MSBSβ Bits 31:0. Purpose: provide a mechanism to match a targetβhost stats confirmation message with its preceding hostβtarget stats request message. Value: MSBs of the opaque cookie specified by the host-side requestor π
ngl bestie, the LSBs one says "Value: MSBs" in the original and I'm not about to gaslight you by "fixing" it β that's literally what it says π
π STATS INFORMATION ELEMENT TAG-LENGTH HEADER FIELDS π
STAT_TYPEβ Bits 7:0. Purpose: identifies the type of statistics info held in the following information element. Value:ath12k_dbg_htt_ext_stats_typeπSTATUSβ Bits 10:8. Purpose: indicate whether the requested stats are present. Value:0β the requested stats have been delivered in full β1β the requested stats have been delivered in part π2β the requested stats could not be delivered (error case) π3β the requested stat type is either not recognized (invalid) π«
DONEβ Bits 11. Purpose: indicates the completion of the stats entry, this will be the last stats conf HTT segment for the requested stats type. Value:0β the stats retrieval is ongoing π1β the stats retrieval is complete π
LENGTHβ Bits 31:16. Purpose: indicate the stats information size. Value: this field specifies the number of bytes of stats information that follows the element tag-length header. It is expected but not required that this length is a multiple of 4 bytes π’
π SEE ALSO π
- Kernel file
./drivers/net/wireless/ath/ath12k/debugfs_htt_stats.hπ
and that's the whole vibe check, bestie π«Ά this page came from ./drivers/net/wireless/ath/ath12k, dated October 2026 β so like, future energy but make it kernel πβ¨π
π¦ 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