Skip to content

Commit 689e112

Browse files
dcpleungkartben
authored andcommitted
kernel: typedef k_mem_domain_t and _mem_domain_info_t
Create alias for struct k_mem_domain into k_mem_domain_t, and struct _mem_domain_info into _mem_domain_info_t via typedef. These are needed to generate offsets via GEN_OFFSET_SYM. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent 2abf7ce commit 689e112

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/zephyr/app_memory/mem_domain.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ struct k_mem_domain {
8989
uint8_t num_partitions;
9090
};
9191

92+
typedef struct k_mem_domain k_mem_domain_t;
93+
9294
/**
9395
* Default memory domain
9496
*

include/zephyr/kernel/thread.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ struct _mem_domain_info {
196196
struct k_mem_domain *mem_domain;
197197
};
198198

199+
typedef struct _mem_domain_info _mem_domain_info_t;
199200
#endif /* CONFIG_USERSPACE */
200201

201202
#ifdef CONFIG_THREAD_USERSPACE_LOCAL_DATA

0 commit comments

Comments
 (0)