kernel: mem_domain: update name/doc of API function for partition add
Update the name of mem-domain API function to add a partition so that it complies with the 'z_' prefix convention. Correct the function documentation. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
53f0f277b0
commit
873dd10ea4
5 changed files with 8 additions and 8 deletions
|
@ -62,7 +62,7 @@ void z_arch_mem_domain_destroy(struct k_mem_domain *domain)
|
||||||
arc_core_mpu_enable();
|
arc_core_mpu_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void _arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
void z_arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
||||||
u32_t partition_id)
|
u32_t partition_id)
|
||||||
{
|
{
|
||||||
/* No-op on this architecture */
|
/* No-op on this architecture */
|
||||||
|
|
|
@ -331,7 +331,7 @@ void z_arch_mem_domain_partition_remove(struct k_mem_domain *domain,
|
||||||
&domain->partitions[partition_id], &reset_attr);
|
&domain->partitions[partition_id], &reset_attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
void z_arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
||||||
u32_t partition_id)
|
u32_t partition_id)
|
||||||
{
|
{
|
||||||
/* No-op on this architecture */
|
/* No-op on this architecture */
|
||||||
|
|
|
@ -335,8 +335,8 @@ void z_arch_mem_domain_partition_remove(struct k_mem_domain *domain,
|
||||||
z_x86_reset_pages((void *)partition->start, partition->size);
|
z_x86_reset_pages((void *)partition->start, partition->size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset/destroy one partition specified in the argument of the API. */
|
/* Add one partition specified in the argument of the API. */
|
||||||
void _arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
void z_arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
||||||
u32_t partition_id)
|
u32_t partition_id)
|
||||||
{
|
{
|
||||||
struct k_mem_partition *partition;
|
struct k_mem_partition *partition;
|
||||||
|
|
|
@ -94,7 +94,7 @@ extern void z_arch_mem_domain_partition_remove(struct k_mem_domain *domain,
|
||||||
u32_t partition_id);
|
u32_t partition_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Remove a partition from the memory domain
|
* @brief Add a partition to the memory domain
|
||||||
*
|
*
|
||||||
* A memory domain contains multiple partitions and this API provides the
|
* A memory domain contains multiple partitions and this API provides the
|
||||||
* freedom to add an additional partition to a memory domain.
|
* freedom to add an additional partition to a memory domain.
|
||||||
|
@ -104,7 +104,7 @@ extern void z_arch_mem_domain_partition_remove(struct k_mem_domain *domain,
|
||||||
* @param domain The memory domain structure
|
* @param domain The memory domain structure
|
||||||
* @param partition_id The partition that needs to be added
|
* @param partition_id The partition that needs to be added
|
||||||
*/
|
*/
|
||||||
extern void _arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
extern void z_arch_mem_domain_partition_add(struct k_mem_domain *domain,
|
||||||
u32_t partition_id);
|
u32_t partition_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -181,11 +181,11 @@ void k_mem_domain_add_partition(struct k_mem_domain *domain,
|
||||||
|
|
||||||
domain->num_partitions++;
|
domain->num_partitions++;
|
||||||
|
|
||||||
/* Handle architecture-specific remove
|
/* Handle architecture-specific add
|
||||||
* only if it is the current thread.
|
* only if it is the current thread.
|
||||||
*/
|
*/
|
||||||
if (_current->mem_domain_info.mem_domain == domain) {
|
if (_current->mem_domain_info.mem_domain == domain) {
|
||||||
_arch_mem_domain_partition_add(domain, p_idx);
|
z_arch_mem_domain_partition_add(domain, p_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
k_spin_unlock(&lock, key);
|
k_spin_unlock(&lock, key);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue