STRUCT IOSM_TRACE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 stuff
  • ctrl_file β€” pointer to the trace control file πŸ—‚οΈ your little handle for controlling the trace
  • ipc_imem β€” the Imem instance 🧠 (yes, Imem, capital I, keep it)
  • dev β€” pointer to the device struct πŸ–₯️ the device's whole identity, lowkey
  • channel β€” the channel instance 🌈 one (1) channel, living its life
  • chl_id β€” the Channel Identifier 🏷️ so u know which channel, iykyk
  • trc_mutex β€” the mutex used for read and write mode πŸ”’ mutual exclusion but make it fashion β€” read and write mode are sharing it
  • mode β€” 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