Renaming K_alloc to _k_mem_map_alloc
Updating micro kernel functions to follow a consistent naming convention. Part of that process is the removal of camelCase naming conventions for the preferred_underscore_method. Change accomplished with the following script: #!/bin/bash echo "Searching for ${1} to replace with ${2}" echo "Checking C, CPP, H, HPP, and s files..." find . -type f \( -iname \*.[ch] -o -iname \*.[ch]pp -o -iname \*.s \) \ -not \( -path host/src/genIdt -prune \) \ -not \( -path host/src/gen_tables -prune \) \ -print | xargs sed -i "s/"${1}"/"${2}"/g" echo "Checking KCONF, LST, and PY files..." find . -type f \( -iname \*.lst -o -iname \*.kconf -o -iname \*.py \) \ -not \( -path host/src/genIdt -prune \) \ -not \( -path host/src/gen_tables -prune \) \ -print | xargs sed -i "s/"${1}"/"${2}"/g" Change-Id: Ia99f28bd2fa89c0a1d592276bacdcaa679a624dd Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
parent
87e125fcb4
commit
1836e017ce
|
@ -83,7 +83,7 @@ extern void _k_task_op(struct k_args *);
|
|||
extern void _k_task_group_op(struct k_args *);
|
||||
extern void _k_task_priority_set(struct k_args *);
|
||||
extern void _k_task_yield(struct k_args *);
|
||||
extern void K_alloc(struct k_args *);
|
||||
extern void _k_mem_map_alloc(struct k_args *);
|
||||
extern void K_dealloc(struct k_args *);
|
||||
extern void _k_timer_alloc(struct k_args *);
|
||||
extern void _k_timer_dealloc(struct k_args *);
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#ifndef KMMAP_H
|
||||
#define KMMAP_H
|
||||
|
||||
extern void K_alloc(struct k_args *A);
|
||||
extern void _k_mem_map_alloc(struct k_args *A);
|
||||
extern void _k_mem_map_alloc_timeout(struct k_args *A);
|
||||
extern void K_dealloc(struct k_args *A);
|
||||
|
||||
|
|
|
@ -88,12 +88,12 @@ void _k_mem_map_alloc_timeout(struct k_args *A)
|
|||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* K_alloc - perform allocate memory map block request
|
||||
* _k_mem_map_alloc - perform allocate memory map block request
|
||||
*
|
||||
* RETURNS: N/A
|
||||
*/
|
||||
|
||||
void K_alloc(struct k_args *A)
|
||||
void _k_mem_map_alloc(struct k_args *A)
|
||||
{
|
||||
struct map_struct *M = _k_mem_map_list + OBJ_INDEX(A->Args.a1.mmap);
|
||||
|
||||
|
|
|
@ -801,7 +801,7 @@ def kernel_main_c_kernel_services():
|
|||
"/* 44 */ _k_task_group_op,", # required
|
||||
"/* 45 */ _k_task_priority_set,", # required
|
||||
"/* 46 */ _k_task_yield,", # required
|
||||
"/* 47 */ K_alloc,", # depends on memory maps
|
||||
"/* 47 */ _k_mem_map_alloc,", # depends on memory maps
|
||||
"/* 48 */ K_dealloc,", # depends on memory maps
|
||||
"/* 49 */ _k_timer_alloc,", # depends on timers
|
||||
"/* 50 */ _k_timer_dealloc,", # depends on timers
|
||||
|
|
Loading…
Reference in a new issue