include/linux/firmware/qcom/qcom_tzmem.h
Source file repositories/reference/linux-study-clean/include/linux/firmware/qcom/qcom_tzmem.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/firmware/qcom/qcom_tzmem.h- Extension
.h- Size
- 2059 bytes
- Lines
- 81
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/cleanup.hlinux/gfp.hlinux/types.h
Detected Declarations
struct devicestruct qcom_tzmem_poolstruct qcom_tzmem_pool_configenum qcom_tzmem_policyfunction qcom_tzmem_shm_bridge_createfunction qcom_tzmem_shm_bridge_delete
Annotated Snippet
struct qcom_tzmem_pool_config {
size_t initial_size;
enum qcom_tzmem_policy policy;
size_t increment;
size_t max_size;
};
struct qcom_tzmem_pool *
qcom_tzmem_pool_new(const struct qcom_tzmem_pool_config *config);
void qcom_tzmem_pool_free(struct qcom_tzmem_pool *pool);
struct qcom_tzmem_pool *
devm_qcom_tzmem_pool_new(struct device *dev,
const struct qcom_tzmem_pool_config *config);
void *qcom_tzmem_alloc(struct qcom_tzmem_pool *pool, size_t size, gfp_t gfp);
void qcom_tzmem_free(void *ptr);
DEFINE_FREE(qcom_tzmem, void *, if (_T) qcom_tzmem_free(_T))
phys_addr_t qcom_tzmem_to_phys(void *ptr);
#if IS_ENABLED(CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE)
int qcom_tzmem_shm_bridge_create(phys_addr_t paddr, size_t size, u64 *handle);
void qcom_tzmem_shm_bridge_delete(u64 handle);
#else
static inline int qcom_tzmem_shm_bridge_create(phys_addr_t paddr,
size_t size, u64 *handle)
{
return 0;
}
static inline void qcom_tzmem_shm_bridge_delete(u64 handle)
{
}
#endif
#endif /* __QCOM_TZMEM */
Annotation
- Immediate include surface: `linux/cleanup.h`, `linux/gfp.h`, `linux/types.h`.
- Detected declarations: `struct device`, `struct qcom_tzmem_pool`, `struct qcom_tzmem_pool_config`, `enum qcom_tzmem_policy`, `function qcom_tzmem_shm_bridge_create`, `function qcom_tzmem_shm_bridge_delete`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.