Renaming K_gtbltmo to _k_block_get_timeout_handle

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: I366189b4cf896020c10dbeed25c7d104a0d106a1
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 dc703d8f81
4 changed files with 5 additions and 5 deletions

View file

@ -98,7 +98,7 @@ extern void K_event_signal(struct k_args *);
extern void K_GetBlock(struct k_args *); extern void K_GetBlock(struct k_args *);
extern void K_RelBlock(struct k_args *); extern void K_RelBlock(struct k_args *);
extern void _k_block_waiters_get(struct k_args *); extern void _k_block_waiters_get(struct k_args *);
extern void K_gtbltmo(struct k_args *); extern void _k_block_get_timeout_handle(struct k_args *);
extern void _k_defrag(struct k_args *); extern void _k_defrag(struct k_args *);
extern void K_mvdreq(struct k_args *Req); extern void K_mvdreq(struct k_args *Req);

View file

@ -36,6 +36,6 @@
extern void K_RelBlock(struct k_args *A); extern void K_RelBlock(struct k_args *A);
extern void K_GetBlock(struct k_args *A); extern void K_GetBlock(struct k_args *A);
extern void _k_defrag(struct k_args *A); extern void _k_defrag(struct k_args *A);
extern void K_gtbltmo(struct k_args *A); extern void _k_block_get_timeout_handle(struct k_args *A);
#endif #endif

View file

@ -480,12 +480,12 @@ void _k_block_waiters_get(struct k_args *A)
/******************************************************************************* /*******************************************************************************
* *
* K_gtbltmo - finish handling an allocate block request that timed out * _k_block_get_timeout_handle - finish handling an allocate block request that timed out
* *
* RETURNS: N/A * RETURNS: N/A
*/ */
void K_gtbltmo(struct k_args *A) void _k_block_get_timeout_handle(struct k_args *A)
{ {
delist_timeout(A->Time.timer); delist_timeout(A->Time.timer);
REMOVE_ELM(A); REMOVE_ELM(A);

View file

@ -818,7 +818,7 @@ def kernel_main_c_kernel_services():
"/* 61 */ K_GetBlock,", # depends on memory pools "/* 61 */ K_GetBlock,", # depends on memory pools
"/* 62 */ K_RelBlock,", # depends on memory pools "/* 62 */ K_RelBlock,", # depends on memory pools
"/* 63 */ _k_block_waiters_get,", # depends on memory pools "/* 63 */ _k_block_waiters_get,", # depends on memory pools
"/* 64 */ K_gtbltmo,", # depends on memory pools "/* 64 */ _k_block_get_timeout_handle,", # depends on memory pools
"/* 65 */ _k_defrag,", # depends on memory pools "/* 65 */ _k_defrag,", # depends on memory pools
"/* 66 */ (kernelfunc) NULL,", # unused "/* 66 */ (kernelfunc) NULL,", # unused
"/* 67 */ (kernelfunc) NULL,", # unused "/* 67 */ (kernelfunc) NULL,", # unused