STRUCT ACPM_CHAN_SHMEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct acpm_chan_shmem β€” okay so this is literally the descriptor of a shared memory channel, bestie. That's the whole vibe. πŸ¦‹

(also hi, this is the acpm_chan_shmem(9) page from the Kernel API Manual, mwah πŸ’…)


✨ SYNOPSIS ✨

Here's the struct in all its glory β€” copy it exactly, do not touch, she is perfect as she is:

struct acpm_chan_shmem {
    u32 id;
    u32 reserved[3];
    u32 rx_rear;
    u32 rx_front;
    u32 rx_base;
    u32 reserved1[3];
    u32 tx_rear;
    u32 tx_front;
    u32 tx_base;
    u32 qlen;
    u32 mlen;
    u32 reserved2[2];
    u32 poll_completion;
 };

πŸŽ€ MEMBERS πŸŽ€

Every field, no skips, we're doing a full tour πŸ’œ

  • id β€” the channel ID. her government name, basically.
  • reserved β€” unused fields. they're just vibing, don't bother them.
  • rx_rear β€” rear pointer of the APM RX queue (that's the TX queue for AP, iykyk).
  • rx_front β€” front pointer of the APM RX queue (TX for AP).
  • rx_base β€” base address of the APM RX queue (TX for AP).
  • reserved1 β€” more unused fields. slay, they're decorative πŸŽ€
  • tx_rear β€” rear pointer of the APM TX queue (which is the RX queue for AP).
  • tx_front β€” front pointer of the APM TX queue (RX for AP).
  • tx_base β€” base address of the APM TX queue (RX for AP).
  • qlen β€” queue length, and it applies to both the TX and RX queues. equal opportunity queen πŸ‘‘
  • mlen β€” message length, also applies to both TX and RX queues.
  • reserved2 β€” unused fields, yes again, it's a whole thing.
  • poll_completion β€” true when the channel works on polling. that's it, that's the field 🌸
heads up bestie: the direction flips between APM and AP for the rx/tx pointers β€” rx_* is the APM RX queue but the AP TX queue, and tx_* is the APM TX queue but the AP RX queue. don't mix them up or it's giving chaos 😭

🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” go read these next:


and that's the page!! 🫢 brought to you by the source in ./drivers/firmware/samsung, stamped October 2026, and yes the footer still says struct acpm_chan_shmem(9) because she's the main character of her own manpage πŸ’…βœ¨

πŸ“¦ where this page comes from