STRUCT QCOM_SMEM(9)
β¨ 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:
struct smem_proc_comm(9)struct smem_global_entry(9)struct smem_header(9)struct smem_ptable_entry(9)struct smem_ptable(9)struct smem_partition_header(9)struct smem_partition(9)struct smem_private_entry(9)struct smem_info(9)struct smem_region(9)qcom_smem_bust_hwspin_lock_by_host(9)qcom_smem_is_available(9)qcom_smem_alloc(9)qcom_smem_get(9)qcom_smem_get_free_space(9)qcom_smem_virt_to_phys(9)qcom_smem_get_soc_id(9)qcom_smem_get_feature_code(9)
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
- 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