Renaming K_sigevent to _k_do_event_signal

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: Ia89406fe3e605d38d5d8e99a8385f20dc0898fae
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 435dad4381
commit b591a3d775
3 changed files with 6 additions and 6 deletions

View file

@ -41,6 +41,6 @@ extern void K_event_signal(struct k_args *A);
extern void _k_event_handler_set(struct k_args *A);
extern void _k_event_test(struct k_args *A);
extern void _k_event_test_timeout(struct k_args *A);
extern void K_sigevent(kevent_t event);
extern void _k_do_event_signal(kevent_t event);
#endif /* _KEVENT_H */

View file

@ -189,7 +189,7 @@ int _task_event_recv(
/*******************************************************************************
*
* K_sigevent - signal an event
* _k_do_event_signal - signal an event
*
* Lowest level event signalling routine, which is invoked directly when the
* signal is issued by a task and indirectly when the signal is issued by a
@ -198,7 +198,7 @@ int _task_event_recv(
* RETURNS: N/A
*/
void K_sigevent(kevent_t event)
void _k_do_event_signal(kevent_t event)
{
struct evstr *E = EVENTS + event;
struct k_args *A = E->waiter;
@ -243,7 +243,7 @@ void K_event_signal(struct k_args *A)
kevent_t event = A->Args.e1.event;
if (likely(event < _k_num_events)) {
K_sigevent(event);
_k_do_event_signal(event);
A->Time.rcode = RC_OK;
} else {
A->Time.rcode = RC_FAIL;

View file

@ -47,7 +47,7 @@ This module provides the microkernel context implementation.
#include <sections.h>
#include <minik.h>
#include <nanok.h>
#include <kevent.h> /* K_sigevent */
#include <kevent.h>
#include <microkernel.h>
#include <microkernel/entries.h> /* kernelfunc */
#include <nanokernel.h>
@ -97,7 +97,7 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
_k_task_monitor_args(pArgs);
}
#endif
K_sigevent(event);
_k_do_event_signal(event);
} else {
#ifdef CONFIG_TASK_MONITOR
if (_k_monitor_mask & MON_KSERV) {