Renaming K_lockreq to _k_mutex_lock_request
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: I0113be3f432d96857cea651d22ebf9822117101f Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
parent
d3c35c2d40
commit
ec1dd85846
4 changed files with 5 additions and 5 deletions
|
@ -60,7 +60,7 @@ extern void K_waitmacc(struct k_args *);
|
|||
extern void K_waitmend(struct k_args *);
|
||||
extern void K_waitmtmo(struct k_args *);
|
||||
extern void K_inqsema(struct k_args *);
|
||||
extern void K_lockreq(struct k_args *);
|
||||
extern void _k_mutex_lock_request(struct k_args *);
|
||||
extern void _k_mutex_lock_reply(struct k_args *);
|
||||
extern void K_unlock(struct k_args *);
|
||||
extern void K_enqreq(struct k_args *);
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#ifndef KRES_H
|
||||
#define KRES_H
|
||||
|
||||
extern void K_lockreq(struct k_args *A);
|
||||
extern void _k_mutex_lock_request(struct k_args *A);
|
||||
extern void _k_mutex_lock_reply(struct k_args *A);
|
||||
extern void K_unlock(struct k_args *A);
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ void _k_mutex_lock_reply(
|
|||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* K_lockreq - process a mutex lock request
|
||||
* _k_mutex_lock_request - process a mutex lock request
|
||||
*
|
||||
* This routine processes a mutex lock request (LOCK_REQ). If the mutex
|
||||
* is already locked, and the timeout is non-zero then the priority inheritance
|
||||
|
@ -154,7 +154,7 @@ void _k_mutex_lock_reply(
|
|||
* \NOMANUAL
|
||||
*/
|
||||
|
||||
void K_lockreq(struct k_args *A /* pointer to mutex lock
|
||||
void _k_mutex_lock_request(struct k_args *A /* pointer to mutex lock
|
||||
request arguments */
|
||||
)
|
||||
{
|
||||
|
|
|
@ -775,7 +775,7 @@ def kernel_main_c_kernel_services():
|
|||
"/* 18 */ K_waitmend,", # depends on semaphores
|
||||
"/* 19 */ K_waitmtmo,", # depends on semaphores and timers
|
||||
"/* 20 */ K_inqsema,", # depends on semaphores
|
||||
"/* 21 */ K_lockreq,", # depends on mutexes
|
||||
"/* 21 */ _k_mutex_lock_request,", # depends on mutexes
|
||||
"/* 22 */ _k_mutex_lock_reply,", # depends on mutexes
|
||||
"/* 23 */ _k_mutex_lock_reply,", # depends on mutexes and timers
|
||||
"/* 24 */ K_unlock,", # depends on mutexes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue