Renaming _SemTake to _sem_take
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:
parent
48d35b30ab
commit
36d2d09a6e
1 changed files with 5 additions and 5 deletions
|
@ -156,13 +156,13 @@ void nano_task_sem_give(
|
||||||
irq_unlock_inline(imask);
|
irq_unlock_inline(imask);
|
||||||
}
|
}
|
||||||
|
|
||||||
FUNC_ALIAS(_SemTake, nano_isr_sem_take, int);
|
FUNC_ALIAS(_sem_take, nano_isr_sem_take, int);
|
||||||
FUNC_ALIAS(_SemTake, nano_fiber_sem_take, int);
|
FUNC_ALIAS(_sem_take, nano_fiber_sem_take, int);
|
||||||
FUNC_ALIAS(_SemTake, nano_task_sem_take, int);
|
FUNC_ALIAS(_sem_take, nano_task_sem_take, int);
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* _SemTake - take a nanokernel semaphore
|
* _sem_take - take a nanokernel semaphore
|
||||||
*
|
*
|
||||||
* Attempt to take a nanokernel sempahore; it may be called from a fiber, task,
|
* Attempt to take a nanokernel sempahore; it may be called from a fiber, task,
|
||||||
* or ISR context.
|
* or ISR context.
|
||||||
|
@ -173,7 +173,7 @@ FUNC_ALIAS(_SemTake, nano_task_sem_take, int);
|
||||||
* RETURNS: 1 if semaphore is available, 0 otherwise
|
* RETURNS: 1 if semaphore is available, 0 otherwise
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int _SemTake(struct nano_sem *chan /* semaphore on which to test */
|
int _sem_take(struct nano_sem *chan /* semaphore on which to test */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
unsigned int imask;
|
unsigned int imask;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue