Lines Matching full:domain
22 * @defgroup mem_domain_apis Memory domain APIs
65 * @brief Memory Domain
67 * A memory domain is a collection of memory partitions, used to represent
69 * may be a member of only one memory domain, but any memory domain may
72 * Supervisor threads may also be a member of a memory domain; this has
74 * threads inherit the memory domain membership of the parent.
76 * A user thread belonging to a memory domain with no active partitions
84 /** partitions in the domain */
88 /** number of active partitions in the domain */
93 * Default memory domain
95 * All threads are a member of some memory domain, even if running in
96 * supervisor mode. Threads belong to this default memory domain if they
97 * haven't been added to or inherited membership from some other domain.
99 * This memory domain has the z_libc_partition partition for the C library
110 * @brief Initialize a memory domain.
112 * Initialize a memory domain with given name and memory partitions.
117 * Do not call k_mem_domain_init() on the same memory domain more than once,
120 * @param domain The memory domain to be initialized.
129 int k_mem_domain_init(struct k_mem_domain *domain, uint8_t num_parts,
133 * @brief Add a memory partition into a memory domain.
135 * Add a memory partition into a memory domain. Partitions must conform to
138 * - Partitions in the same memory domain may not overlap each other.
144 * - Memory domain partitions are only intended to control access to memory
152 * @param domain The memory domain to be added a memory partition.
159 int k_mem_domain_add_partition(struct k_mem_domain *domain,
163 * @brief Remove a memory partition from a memory domain.
165 * Remove a memory partition from a memory domain.
167 * @param domain The memory domain to be removed a memory partition.
174 int k_mem_domain_remove_partition(struct k_mem_domain *domain,
178 * @brief Add a thread into a memory domain.
180 * Add a thread into a memory domain. It will be removed from whatever
181 * memory domain it previously belonged to.
183 * @param domain The memory domain that the thread is going to be added into.
184 * @param thread ID of thread going to be added into the memory domain.
188 int k_mem_domain_add_thread(struct k_mem_domain *domain,