STRUCT SOF_COPIER_GATEWAY_CFG(9)
π struct sof_copier_gateway_cfg(9) β bestie's guide to the IPC gateway config
okay so first things first: this is a page straight outta the Kernel API Manual, and the star of the show is struct sof_copier_gateway_cfg β literally the IPC gateway configuration. yes queen, we're in kernel-land now π
β¨ NAME β¨
struct sof_copier_gateway_cfg β the IPC gateway configuration. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
here's the whole struct, copy-pasted with love and zero typos:
struct sof_copier_gateway_cfg {
uint32_t node_id;
uint32_t dma_buffer_size;
uint32_t config_length;
uint32_t config_data[];
};
notice the config_data[]? yeah bestie that's an array with no size β it's giving flexible-array-member energy π
π Members π
node_idβ the ID of the Gateway Node. like, which node are we even talking about? this one, babes. π«Άdma_buffer_sizeβ the preferred Gateway DMA buffer size, and it's measured in bytes fr fr. "preferred" is doing a lot of work here, so likeβ¦ it's a preference, not a promise, iykyk πconfig_lengthβ the length of the gateway node configuration blob that's specified in#config_data. yes, the blob. we love a blob β¨config_dataβ and here it is: the gateway node configuration blob itself. the main character of the whole struct, honestly π
π¦ SEE ALSO π¦
okay don't leave yet, there's a whole little family of structs and they all live in the kernel file ./sound/soc/sof/ipc4-topology.h. gathering them all here, no gatekeeping π
struct sof_ipc4_pipeline(9)struct ipc4_pipeline_set_state_data(9)struct sof_ipc4_pin_format(9)struct sof_ipc4_available_audio_format(9)struct sof_ipc4_copier_data(9)struct sof_ipc4_gtw_attributes(9)struct sof_ipc4_dma_device_stream_ch_map(9)struct sof_ipc4_dma_stream_ch_map(9)struct sof_ipc4_dma_config(9)struct sof_ipc4_dma_config_tlv(9)struct sof_ipc4_copier(9)struct sof_ipc4_ctrl_value_chan(9)struct sof_ipc4_control_data(9)struct sof_ipc4_control_msg_payload(9)struct sof_ipc4_gain_params(9)struct sof_ipc4_gain_data(9)struct sof_ipc4_gain(9)struct sof_ipc4_mixer(9)struct sof_ipc4_src(9)struct sof_ipc4_asrc(9)struct sof_ipc4_base_module_cfg_ext(9)struct sof_ipc4_process(9)
like, the whole squad is in ./sound/soc/sof/ipc4-topology.h β go say hi to them, they don't bite π§
ngl if you ever forget what a gateway config looks like, just come back here. four fields. not that deep. slay. π₯
kisses and good vibes from ./sound/soc/sof, dated October 2026 β that's the source, the version, and the date, all wrapped up with a bow ππβ¨
π¦ 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