STRUCT STM_DRVDATA(9)
π struct stm_drvdata(9) π
okay so welcome to the Kernel API Manual, bestie β this page is literally all about struct stm_drvdata and we are gonna get into it π
π NAME π
struct stm_drvdata β specifics associated to an STM component. That's the whole vibe: it's the struct that holds the specifics for an STM component, periodt π
β¨ SYNOPSIS β¨
okay so the shape is literally this, no cap:
struct stm_drvdata {
void __iomem *base;
struct clk *atclk;
struct clk *pclk;
struct coresight_device *csdev;
spinlock_t spinlock;
struct channel_space chs;
struct stm_data stm;
u8 traceid;
u32 write_bytes;
u32 stmsper;
u32 stmspscr;
u32 numsp;
u32 stmheer;
u32 stmheter;
u32 stmhebsr;
};
π Members π
baseβ the memory mapped base address for this component, bestie. It's giving "where the registers live" πatclkβ an optional clock for the core parts of the STM. optional, so no pressure, but if it's there it's iconic β°pclkβ the APB clock if present, otherwiseNULL. if it's missing, it's literallyNULL, no cap π«₯csdevβ the component vitals needed by the framework. essential little details, main character energy πspinlockβ only one at a time pls. we are not doing chaos in here π€chsβ the channels accociated to this STM (spelling is part of the lore now π«Ά)stmβ the structure associated to the generic STM interface. the generic-interface bestie π€traceidβ the value of the current ID for this component. current ID, current vibes β¨write_bytesβ the Maximus bytes this STM can write at a time. yes, Maximus, capital M, iconic πstmsperβ settings for registerSTMSPERπstmspscrβ settings for registerSTMSPSCRπΈnumspβ the total number of stimulus port support by this STM. that's the count, fr fr π’stmheerβ settings for registerSTMHEERπstmheterβ settings for registerSTMHETERπ¦stmhebsrβ settings for registerSTMHEBSRβ
π¦ SEE ALSO π¦
- Kernel file
./drivers/hwtracing/coresight/coresight-stm.cβ go read it when you want the full behind-the-scenes, bestie π₯
source/version: ./drivers/hwtracing/coresight Β· date: October 2026 Β· struct stm_drvdata(9) out, mwah ππ«Ά
π¦ 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