Renaming K_alloctmo to _k_mem_map_alloc_timeout

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: I5fa261fc3798fc3f2b1c608fcb74744741ec74f6
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-28 11:35:50 -07:00 committed by Anas Nashif
commit 8f41d89142
4 changed files with 5 additions and 5 deletions

View file

@ -89,7 +89,7 @@ extern void K_alloc_timer(struct k_args *);
extern void K_dealloc_timer(struct k_args *);
extern void K_start_timer(struct k_args *);
extern void K_stop_timer(struct k_args *);
extern void K_alloctmo(struct k_args *);
extern void _k_mem_map_alloc_timeout(struct k_args *);
extern void K_debug_req(struct k_args *);
extern void K_debug_ack(struct k_args *);
extern void K_event_test(struct k_args *);

View file

@ -34,7 +34,7 @@
#define KMMAP_H
extern void K_alloc(struct k_args *A);
extern void K_alloctmo(struct k_args *A);
extern void _k_mem_map_alloc_timeout(struct k_args *A);
extern void K_dealloc(struct k_args *A);
#endif

View file

@ -73,12 +73,12 @@ void _mem_map_init(void)
/*******************************************************************************
*
* K_alloctmo - finish handling a memory map block request that timed out
* _k_mem_map_alloc_timeout - finish handling a memory map block request that timed out
*
* RETURNS: N/A
*/
void K_alloctmo(struct k_args *A)
void _k_mem_map_alloc_timeout(struct k_args *A)
{
delist_timeout(A->Time.timer);
REMOVE_ELM(A);

View file

@ -807,7 +807,7 @@ def kernel_main_c_kernel_services():
"/* 50 */ K_dealloc_timer,", # depends on timers
"/* 51 */ K_start_timer,", # depends on timers
"/* 52 */ K_stop_timer,", # depends on timers
"/* 53 */ K_alloctmo,", # depends on memory maps [and timers?]
"/* 53 */ _k_mem_map_alloc_timeout,",# depends on memory maps [and timers?]
"/* 54 */ (kernelfunc) NULL,", # unused
"/* 55 */ (kernelfunc) NULL,", # unused
"/* 56 */ (kernelfunc) NULL,", # unused