STRUCT QCOM_SMEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct qcom_smem(9) ✨

okay bestie, so this is struct qcom_smem from the Kernel API Manual (the qcom_smem(9) girly herself πŸ’…), and she's literally the device data for the smem device. no cap. she's giving main character energy in a shared-memory kind of way and we're gonna learn her together 🫢


🌸 NAME 🌸

struct qcom_smem β€” device data for the smem device ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct qcom_smem {
    struct device *dev;
    struct hwspinlock *hwlock;
    u32 item_count;
    struct platform_device *socinfo;
    struct smem_ptable *ptable;
    struct smem_partition global_partition;
    struct xarray partitions;
    struct dentry *debugfs_dir;
    unsigned int num_regions;
    struct smem_region regions[];
 };

like... look at her. iconic. πŸ”₯


πŸ’– Members πŸ’–

  • dev β€” the device pointer 🫢
  • hwlock β€” a reference to a hwspinlock πŸ”’
  • item_count β€” the max accepted item number, okay so this is the ceiling, don't go over it πŸŽ€
  • socinfo β€” the platform device pointer ✨
  • ptable β€” the virtual base of the partition table πŸ“‹
  • global_partition β€” describes for the global partition when in use 🌍
  • partitions β€” the list of partitions of the current processor/host πŸ’…
  • debugfs_dir β€” the directory for SMEM-related debugfs attributes πŸ¦‹
  • num_regions β€” the number of regions πŸ”’
  • regions β€” the list of the memory regions defining the shared memory 🧚

⭐ SEE ALSO ⭐

Kernel file ./drivers/soc/qcom/smem.c (iykyk πŸ‘€), plus her whole friend group fr fr:


go read the actual kernel file before you @ me, bestie β€” the struct is only half the story πŸ“–βœ¨

okay that's the whole page!! sign-off time: this little beauty lives under ./drivers/soc/qcom, dated October 2026, and it's the struct qcom_smem(9) page. slay, study her, and you're gonna eat this exam fr fr πŸ’œπŸŒˆπŸŽ€

πŸ“¦ where this page comes from