Renaming K_enqrpl to _k_fifo_enque_reply

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: I3d006b76386a4ac8fc82192bf83c028bc66455ed
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 e0d338a7e9
4 changed files with 6 additions and 6 deletions

View file

@ -64,7 +64,7 @@ extern void _k_mutex_lock_request(struct k_args *);
extern void _k_mutex_lock_reply(struct k_args *);
extern void K_unlock(struct k_args *);
extern void K_enqreq(struct k_args *);
extern void K_enqrpl(struct k_args *);
extern void _k_fifo_enque_reply(struct k_args *);
extern void K_deqreq(struct k_args *);
extern void K_deqrpl(struct k_args *);
extern void K_queue(struct k_args *);

View file

@ -33,7 +33,7 @@
#ifndef KFIFO_H
#define KFIFO_H
extern void K_enqrpl(struct k_args *A);
extern void _k_fifo_enque_reply(struct k_args *A);
extern void K_deqrpl(struct k_args *A);
extern void K_enqreq(struct k_args *A);
extern void K_deqreq(struct k_args *A);

View file

@ -38,12 +38,12 @@
/*******************************************************************************
*
* K_enqrpl - finish performing an incomplete FIFO enqueue request
* _k_fifo_enque_reply - finish performing an incomplete FIFO enqueue request
*
* RETURNS: N/A
*/
void K_enqrpl(struct k_args *A)
void _k_fifo_enque_reply(struct k_args *A)
{
if (A->Time.timer)
FREETIMER(A->Time.timer);

View file

@ -780,8 +780,8 @@ def kernel_main_c_kernel_services():
"/* 23 */ _k_mutex_lock_reply,", # depends on mutexes and timers
"/* 24 */ K_unlock,", # depends on mutexes
"/* 25 */ K_enqreq,", # depends on FIFOs
"/* 26 */ K_enqrpl,", # depends on FIFOs
"/* 27 */ K_enqrpl,", # depends on FIFOs and timers
"/* 26 */ _k_fifo_enque_reply,", # depends on FIFOs
"/* 27 */ _k_fifo_enque_reply,", # depends on FIFOs and timers
"/* 28 */ K_deqreq,", # depends on FIFOs
"/* 29 */ K_deqrpl,", # depends on FIFOs
"/* 30 */ K_deqrpl,", # depends on FIFOs and timers