From 36d2d09a6e0b6233d13a593113c69b1bca5bf175 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] 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 --- kernel/nanokernel/core/nano_sema.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/nanokernel/core/nano_sema.c b/kernel/nanokernel/core/nano_sema.c index f061d70cd94..82cbef84fa1 100644 --- a/kernel/nanokernel/core/nano_sema.c +++ b/kernel/nanokernel/core/nano_sema.c @@ -156,13 +156,13 @@ void nano_task_sem_give( irq_unlock_inline(imask); } -FUNC_ALIAS(_SemTake, nano_isr_sem_take, int); -FUNC_ALIAS(_SemTake, nano_fiber_sem_take, int); -FUNC_ALIAS(_SemTake, nano_task_sem_take, int); +FUNC_ALIAS(_sem_take, nano_isr_sem_take, int); +FUNC_ALIAS(_sem_take, nano_fiber_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, * or ISR context. @@ -173,7 +173,7 @@ FUNC_ALIAS(_SemTake, nano_task_sem_take, int); * 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;