Renaming K_GetBlock _k_mem_pool_block_get

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: Ibbca87c801157ef48996e86f7b4b3a87eab5628a
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
parent dc703d8f81
commit b3b8e72dab
4 changed files with 10 additions and 10 deletions

View file

@ -95,10 +95,10 @@ extern void K_debug_ack(struct k_args *);
extern void K_event_test(struct k_args *);
extern void K_event_set_handler(struct k_args *);
extern void K_event_signal(struct k_args *);
extern void K_GetBlock(struct k_args *);
extern void _k_mem_pool_block_get(struct k_args *);
extern void K_RelBlock(struct k_args *);
extern void _k_block_waiters_get(struct k_args *);
extern void _k_block_get_timeout_handle(struct k_args *);
extern void _k_mem_pool_block_get_timeout_handle(struct k_args *);
extern void _k_defrag(struct k_args *);
extern void K_mvdreq(struct k_args *Req);

View file

@ -34,8 +34,8 @@
#define KMEMP_H
extern void K_RelBlock(struct k_args *A);
extern void K_GetBlock(struct k_args *A);
extern void _k_mem_pool_block_get(struct k_args *A);
extern void _k_defrag(struct k_args *A);
extern void _k_block_get_timeout_handle(struct k_args *A);
extern void _k_mem_pool_block_get_timeout_handle(struct k_args *A);
#endif

View file

@ -480,12 +480,12 @@ void _k_block_waiters_get(struct k_args *A)
/*******************************************************************************
*
* _k_block_get_timeout_handle - finish handling an allocate block request that timed out
* _k_mem_pool_block_get_timeout_handle - finish handling an allocate block request that timed out
*
* RETURNS: N/A
*/
void _k_block_get_timeout_handle(struct k_args *A)
void _k_mem_pool_block_get_timeout_handle(struct k_args *A)
{
delist_timeout(A->Time.timer);
REMOVE_ELM(A);
@ -495,12 +495,12 @@ void _k_block_get_timeout_handle(struct k_args *A)
/*******************************************************************************
*
* K_GetBlock - perform allocate memory pool block request
* _k_mem_pool_block_get - perform allocate memory pool block request
*
* RETURNS: N/A
*/
void K_GetBlock(struct k_args *A)
void _k_mem_pool_block_get(struct k_args *A)
{
struct pool_struct *P = _k_mem_pool_list + OBJ_INDEX(A->Args.p1.poolid);
char *found_block;

View file

@ -815,10 +815,10 @@ def kernel_main_c_kernel_services():
"/* 58 */ K_event_test,", # required
"/* 59 */ K_event_set_handler,", # required
"/* 60 */ K_event_signal,", # required
"/* 61 */ K_GetBlock,", # depends on memory pools
"/* 61 */ _k_mem_pool_block_get,", # depends on memory pools
"/* 62 */ K_RelBlock,", # depends on memory pools
"/* 63 */ _k_block_waiters_get,", # depends on memory pools
"/* 64 */ _k_block_get_timeout_handle,", # depends on memory pools
"/* 64 */ _k_mem_pool_block_get_timeout_handle,", # depends on memory pools
"/* 65 */ _k_defrag,", # depends on memory pools
"/* 66 */ (kernelfunc) NULL,", # unused
"/* 67 */ (kernelfunc) NULL,", # unused