Rename _InsertCCS to _insert_ccs

Updating nano 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}"
find . -type f \( -iname \*.c -o -iname \*.h -o -iname \*.s -o -iname \*.kconf \) \
       -not \( -path host/src/genIdt -prune \) \   \
       -not \( -path host/src/gen_tables -prune \) \
       -print | xargs sed -i "s/"${1}"/"${2}"/g"

Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-16 12:25:11 -07:00 committed by Anas Nashif
parent 1cc59ccce9
commit bcddb11e8c
8 changed files with 15 additions and 15 deletions

View file

@ -264,7 +264,7 @@ static ALWAYS_INLINE int _IS_IN_ISR(void)
return ((act & 0xffff) != 0); return ((act & 0xffff) != 0);
} }
extern void _InsertCCS(tCCS **, tCCS *); extern void _insert_ccs(tCCS **, tCCS *);
extern void *_NewContext(char *, unsigned, _ContextEntry, extern void *_NewContext(char *, unsigned, _ContextEntry,
_ContextArg, _ContextArg, _ContextArg, _ContextArg, _ContextArg, _ContextArg,
int, unsigned); int, unsigned);

View file

@ -201,7 +201,7 @@ static ALWAYS_INLINE void fiberRtnValueSet(
pEsf->a1 = value; pEsf->a1 = value;
} }
extern void _InsertCCS(tCCS **, tCCS *); extern void _insert_ccs(tCCS **, tCCS *);
extern void *_NewContext(char *, extern void *_NewContext(char *,
unsigned, unsigned,
_ContextEntry, _ContextEntry,

View file

@ -917,7 +917,7 @@ typedef unsigned char
extern void nano_cpu_atomic_idle(unsigned int imask); extern void nano_cpu_atomic_idle(unsigned int imask);
extern unsigned _Swap(unsigned int mask); extern unsigned _Swap(unsigned int mask);
extern void _InsertCCS(tCCS **queue, tCCS *ccs); extern void _insert_ccs(tCCS **queue, tCCS *ccs);
extern void _NewContextUsr(void *ccs, int prio, unsigned options); extern void _NewContextUsr(void *ccs, int prio, unsigned options);
extern void *_NewContext(char *pStack, extern void *_NewContext(char *pStack,

View file

@ -121,7 +121,7 @@ void _LifoPut(struct nano_lifo *chan, /* channel on which to put */
chan->proc = (tCCS *)0; chan->proc = (tCCS *)0;
fiberRtnValueSet(ccs, (unsigned int)data); fiberRtnValueSet(ccs, (unsigned int)data);
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
} else { } else {
*(void **)data = chan->list; *(void **)data = chan->list;
chan->list = data; chan->list = data;
@ -155,7 +155,7 @@ void nano_task_lifo_put(
chan->proc = (tCCS *)0; chan->proc = (tCCS *)0;
fiberRtnValueSet(ccs, (unsigned int)data); fiberRtnValueSet(ccs, (unsigned int)data);
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
/* swap into the newly ready fiber */ /* swap into the newly ready fiber */

View file

@ -132,7 +132,7 @@ void _FifoPut(struct nano_fifo *chan, /* channel on which to interact */
ccs->link = 0; ccs->link = 0;
fiberRtnValueSet(ccs, (unsigned int)data); fiberRtnValueSet(ccs, (unsigned int)data);
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
} else { } else {
*(void **)chan->tail = data; *(void **)chan->tail = data;
chan->tail = data; chan->tail = data;
@ -177,7 +177,7 @@ void nano_task_fifo_put(
ccs->link = 0; ccs->link = 0;
fiberRtnValueSet(ccs, (unsigned int)data); fiberRtnValueSet(ccs, (unsigned int)data);
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
/* swap into the fiber just made ready */ /* swap into the fiber just made ready */

View file

@ -113,7 +113,7 @@ void _SemGive(struct nano_sem *chan /* semaphore on which to signal */
ccs = chan->proc; ccs = chan->proc;
if (ccs != (tCCS *)NULL) { if (ccs != (tCCS *)NULL) {
chan->proc = 0; chan->proc = 0;
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
} else { } else {
chan->nsig++; chan->nsig++;
} }
@ -143,7 +143,7 @@ void nano_task_sem_give(
ccs = chan->proc; ccs = chan->proc;
if (ccs != (tCCS *)NULL) { if (ccs != (tCCS *)NULL) {
chan->proc = 0; chan->proc = 0;
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
/* swap into the newly ready fiber */ /* swap into the newly ready fiber */

View file

@ -125,7 +125,7 @@ void _StackPush(struct nano_stack *chan, /* stack channel on
if (ccs != (tCCS *)NULL) { if (ccs != (tCCS *)NULL) {
chan->proc = 0; chan->proc = 0;
fiberRtnValueSet(ccs, data); fiberRtnValueSet(ccs, data);
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
} else { } else {
*(chan->next) = data; *(chan->next) = data;
chan->next++; chan->next++;
@ -159,7 +159,7 @@ void nano_task_stack_push(
if (ccs != (tCCS *)NULL) { if (ccs != (tCCS *)NULL) {
chan->proc = 0; chan->proc = 0;
fiberRtnValueSet(ccs, data); fiberRtnValueSet(ccs, data);
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
/* swap into the newly ready fiber */ /* swap into the newly ready fiber */

View file

@ -62,7 +62,7 @@ const char * const build_timestamp = BUILD_TIMESTAMP;
/******************************************************************************* /*******************************************************************************
* *
* _InsertCCS - add a context into the list of runnable contexts * _insert_ccs - add a context into the list of runnable contexts
* *
* The list of runnable contexts is maintained via a single linked list * The list of runnable contexts is maintained via a single linked list
* in priority order. Numerically lower priorities represent higher priority * in priority order. Numerically lower priorities represent higher priority
@ -73,7 +73,7 @@ const char * const build_timestamp = BUILD_TIMESTAMP;
* RETURNS: N/A * RETURNS: N/A
*/ */
void _InsertCCS(tCCS **queue, tCCS *ccs) void _insert_ccs(tCCS **queue, tCCS *ccs)
{ {
tCCS *pQ; tCCS *pQ;
@ -210,7 +210,7 @@ void _FiberStart(char *pStack,
/* insert thew newly crafted CCS into the fiber runnable context list */ /* insert thew newly crafted CCS into the fiber runnable context list */
_InsertCCS((tCCS **)&_NanoKernel.fiber, ccs); _insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
/* /*
* Simply return to the caller if the current context is FIBER, * Simply return to the caller if the current context is FIBER,
@ -249,7 +249,7 @@ void fiber_yield(void)
* then swap to the context at the head of the fiber list. * then swap to the context at the head of the fiber list.
*/ */
_InsertCCS(&(_NanoKernel.fiber), _NanoKernel.current); _insert_ccs(&(_NanoKernel.fiber), _NanoKernel.current);
_Swap(imask); _Swap(imask);
} else } else
irq_unlock_inline(imask); irq_unlock_inline(imask);