STRUCT IOSM_TRACE(9)
π struct iosm_trace(9) π
okay bestie, welcome to the Kernel API Manual β¨ β this is the page for struct iosm_trace, and yes it's giving "small struct, big responsibilities" energy. let's get into it π«Ά
πΈ NAME πΈ
struct iosm_trace β the struct for the trace interface π
like, that's literally its whole job and it ate
π¦ SYNOPSIS π¦
struct iosm_trace {
struct rchan *ipc_rchan;
struct dentry *ctrl_file;
struct iosm_imem *ipc_imem;
struct device *dev;
struct ipc_mem_channel *channel;
enum ipc_channel_id chl_id;
struct mutex trc_mutex;
enum trace_ctrl_mode mode;
};
no cap, that's the whole shape of it π copy it exactly, don't be out here renaming fields, i'm watching π
π Members π
okay so now we go field by field, and honestly? every single one is a main character:
ipc_rchanβ pointer to the relay channel π‘ that's the vibe channel, the one relaying stuffctrl_fileβ pointer to the trace control file ποΈ your little handle for controlling the traceipc_imemβ the Imem instance π§ (yes, Imem, capital I, keep it)devβ pointer to the device struct π₯οΈ the device's whole identity, lowkeychannelβ the channel instance π one (1) channel, living its lifechl_idβ the Channel Identifier π·οΈ so u know which channel, iykyktrc_mutexβ the mutex used for read and write mode π mutual exclusion but make it fashion β read and write mode are sharing itmodeβ the mode for enable and disable trace ποΈ turning the trace on, turning the trace off, the classic toggle arc
β¨ SEE ALSO β¨
- Kernel file
./drivers/net/wwan/iosm/iosm_ipc_trace.h enum trace_ctrl_mode(9)π
and that's the page!! π this little cutie lives in ./drivers/net/wwan/iosm and the docs say October 2026 β so mark your calendars bestie, it's dated and it's iconic π 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