STRUCT IPC_PROTOCOL_AP_SHM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ipc_protocol_ap_shm β€” the kernel API manual bestie edition πŸ’–

okay so listen πŸ‘‘ this is the page for struct ipc_protocol_ap_shm, straight out of the Kernel API Manual β€” it's the Protocol Shared Memory Structure and honestly? it's kind of the main character of the shared-memory situation. let's get into it ✨


🌸 NAME 🌸

struct ipc_protocol_ap_shm β€” Protocol Shared Memory Structure πŸ’… that's it, that's the whole name, no cap.


✨ SYNOPSIS ✨

here's the whole struct, copy it exact because we do not freestyle kernel definitions 🫢

struct ipc_protocol_ap_shm {
    struct ipc_protocol_context_info ci;
    struct ipc_protocol_device_info device_info;
    __le32 msg_head;
    __le32 head_array[IPC_MEM_MAX_PIPES];
    __le32 msg_tail;
    __le32 tail_array[IPC_MEM_MAX_PIPES];
    union ipc_mem_msg_entry msg_ring[IPC_MEM_MSG_ENTRIES];
 };

look at her. gorgeous. iconic. the layout is immaculate 🌈


πŸŽ€ Members πŸŽ€

bestie these are the fields, do not lose track, we go in order ✨

  • ci β€” the context information struct 🧚 literally the vibes/context of the whole thing
  • device_info β€” the device information struct πŸ’œ this is where the device spills its info
  • msg_head β€” it points to the msg head, that's the whole job, lowkey dedicated
  • head_array β€” an array of head pointers 🎯 like a little squad of heads
  • msg_tail β€” points to the msg tail, the head's other half, cute
  • tail_array β€” an array of tail pointers πŸ¦‹ a whole friend group of tails
  • msg_ring β€” the circular buffers for the read/tail and write/head indeces πŸ’€ (yes that's how it's spelled in the source, we don't edit, we report) β€” this is the actual ring where messages go round and round like a carousel 🎠

πŸ¦‹ SEE ALSO πŸ¦‹

okay the Kernel file is ./drivers/net/wwan/iosm/iosm_ipc_protocol.h and here's the whole friend group of structs and functions you should also go look at, all of them, no skipping πŸ™ˆ

like a whole group chat of related symbols fr fr πŸ”₯ go say hi to all of them πŸ’–


okay that's the whole page, nothing left out, we ate and left zero crumbs πŸ“πŸ’…

and that's a wrap bestie β€” shoutout to ./drivers/net/wwan/iosm for being the source directory, version October 2026 for the timestamp, and the title struct ipc_protocol_ap_shm(9) for the whole era πŸ‘‘ see you in the next manpage, mwah πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from