STRUCT RPMSG_INFO(9)
π struct rpmsg_info(9) β the rpmsg audio info struct, bestie π
okay so this page is from the Kernel API Manual (section 9, the kernel-api girlies π), and it's literally all about struct rpmsg_info β the rpmsg audio information struct. no cap, that's the whole name. let's get into it β¨
πΈ SYNOPSIS πΈ
like, here's the whole struct, character for character, i would never do you dirty:
struct rpmsg_info {
struct rpmsg_device *rpdev;
struct device *dev;
struct completion cmd_complete;
struct pm_qos_request pm_qos_req;
struct rpmsg_r_msg r_msg;
struct rpmsg_msg msg[MSG_MAX_NUM];
struct rpmsg_msg notify[2];
bool notify_updated[2];
struct workqueue_struct *rpmsg_wq;
struct work_of_rpmsg work_list[WORK_MAX_NUM];
int work_write_index;
int work_read_index;
int msg_drop_count[2];
int num_period[2];
void *callback_param[2];
dma_callback callback[2];
int (*send_message)(struct rpmsg_msg *msg, struct rpmsg_info *info);
spinlock_t lock[2];
spinlock_t wq_lock;
struct mutex msg_lock;
struct stream_timer stream_timer[2];
};
like yes, the indentation on that last brace is exactly what the source says, i'm not touching it π
π Members π
okay bestie, field-by-field breakdown, let's go π«Ά
rpdevβ pointer ofrpmsg_device. iconic pointer energy.devβ pointer for theimx_pcm_rpmsgdevice.cmd_completeβ command is finished. that's the completion, she's done βpm_qos_reqβ request of pm qos.r_msgβ received rpmsg.msgβ array of rpmsg.notifyβ notification msg (type C) for TX & RX. yes, type C, keep that.notify_updatedβ notification flag for TX & RX.rpmsg_wqβ rpmsg workqueue.work_listβ array of work list for workqueue.work_write_indexβ write index of work list.work_read_indexβ read index of work list.msg_drop_countβ counter of dropped msg for TX & RX.num_periodβ period number for TX & RX.callback_paramβ parameter for period elapse callback for TX & RX.callbackβ period elapse callback for TX & RX.send_messageβ function pointer for send message.lockβ spin lock for TX & RX.wq_lockβ lock for work queue.msg_lockβ lock for send message.stream_timerβ timer for tigger workqueue. (yes, "tigger" β that's the original's spelling, not me being silly, i promise ππ)
also notice basically everything is [2] β TX & RX, two of everything, twins energy fr fr π
π¦ SEE ALSO π¦
- Kernel file
./sound/soc/fsl/imx-pcm-rpmsg.h struct rpmsg_head(9)struct param_s(9)
okay that's the whole vibe check β
this one lives under ./sound/soc/fsl, dated October 2026, and it's the struct rpmsg_info(9) page from the Kernel API Manual β go read the header file bestie, it ate π
β¨π
π¦ 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