STRUCT SOF_IPC4_MSG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sof_ipc4_msg(9) πŸ’…

okay bestie, welcome to the struct sof_ipc4_msg(9) page from the Kernel API Manual β€” we folded the manual name in up here instead of doing a boring header line, and honestly? it's giving accessible ✨

πŸŽ€ NAME πŸŽ€

struct sof_ipc4_msg β€” Placeholder of an IPC4 message. That's the whole name section, short and iconic πŸ’–

✨ SYNOPSIS ✨

Here's the struct in all its glory, copied exactly, no edits, no cap:

       struct sof_ipc4_msg {
           union {
             u64 header_u64;
             struct {
               u32 primary;
               u32 extension;
             };
           };
           size_t data_size;
           void *data_ptr;
        };

🌸 Members 🌸

  • {unnamed_union} β€” anonymous, literally no name, mysterious main character energy 🫣
    • header_u64 β€” the IPC4 header as a single u64 number πŸ”₯
    • {unnamed_struct} β€” anonymous again, the struct version of "no thoughts, just vibes" πŸ™ˆ
      • primary β€” the primary part of the header, and it's mandatory β€” not optional, the required one πŸ‘‘
      • extension β€” the extended part of the header; if it's not used, it should be set to 0 ⭐
  • data_size β€” the size of the data, in bytes, that data_ptr points to πŸ“
  • data_ptr β€” pointer to the optional payload of a message, so it's the "maybe there, maybe not" data hookup πŸŽ€

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./include/sound/sof/ipc4/header.h, plus these besties: struct sof_ipc4_tuple(9), struct sof_ipc4_process_data_error_event_data(9), struct sof_ipc4_mixer_underrun_event_data(9), union sof_ipc4_resource_event_data(9), and struct sof_ipc4_notify_module_data(9) πŸ¦‹


source/version check bestie: ./include/sound/sof/ipc4 β€” date: October 2026 β€” page: struct sof_ipc4_msg(9). That's the cute sign-off, mwah πŸ’‹πŸ’…

πŸ“¦ where this page comes from