Renaming K_queue to _k_fifo_ioctl

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

View file

@ -67,7 +67,7 @@ extern void _k_fifo_enque_request(struct k_args *);
extern void _k_fifo_enque_reply(struct k_args *);
extern void _k_fifo_deque_request(struct k_args *);
extern void _k_fifo_deque_reply(struct k_args *);
extern void K_queue(struct k_args *);
extern void _k_fifo_ioctl(struct k_args *);
extern void _k_mbox_send_request(struct k_args *);
extern void _k_mbox_send_reply(struct k_args *);
extern void _k_mbox_send_ack(struct k_args *);

View file

@ -37,6 +37,6 @@ extern void _k_fifo_enque_reply(struct k_args *A);
extern void _k_fifo_deque_reply(struct k_args *A);
extern void _k_fifo_enque_request(struct k_args *A);
extern void _k_fifo_deque_request(struct k_args *A);
extern void K_queue(struct k_args *A);
extern void _k_fifo_ioctl(struct k_args *A);
#endif

View file

@ -288,12 +288,12 @@ int _task_fifo_get(kfifo_t queue, /* FIFO queue */
/*******************************************************************************
*
* K_queue - perform miscellaneous FIFO request
* _k_fifo_ioctl - perform miscellaneous FIFO request
*
* RETURNS: N/A
*/
void K_queue(struct k_args *A)
void _k_fifo_ioctl(struct k_args *A)
{
struct que_struct *Q;
int Qid;

View file

@ -785,7 +785,7 @@ def kernel_main_c_kernel_services():
"/* 28 */ _k_fifo_deque_request,", # depends on FIFOs
"/* 29 */ _k_fifo_deque_reply,", # depends on FIFOs
"/* 30 */ _k_fifo_deque_reply,", # depends on FIFOs and timers
"/* 31 */ K_queue,", # depends on FIFOs
"/* 31 */ _k_fifo_ioctl,", # depends on FIFOs
"/* 32 */ _k_mbox_send_request,", # depends on mailboxes
"/* 33 */ _k_mbox_send_reply,", # depends on mailboxes and timers
"/* 34 */ _k_mbox_send_ack,", # depends on mailboxes