Renaming copypacket to copy_packet

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: Ie6a828039b10107c24965c4e8a3c7e71c7c10389
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-28 11:35:49 -07:00 committed by Anas Nashif
commit 842d2c28e2

View file

@ -47,12 +47,12 @@
/******************************************************************************* /*******************************************************************************
* *
* copypacket - copy a packet * copy_packet - copy a packet
* *
* RETURNS: N/A * RETURNS: N/A
*/ */
static void copypacket(struct k_args **out, struct k_args *in) static void copy_packet(struct k_args **out, struct k_args *in)
{ {
GETARGS(*out); GETARGS(*out);
@ -344,7 +344,7 @@ void K_sendreq(struct k_args *Writer)
MailBox = _k_mbox_list + OBJ_INDEX(MailBoxId); MailBox = _k_mbox_list + OBJ_INDEX(MailBoxId);
copypacket(&CopyWriter, Writer); copy_packet(&CopyWriter, Writer);
if (bAsync) { if (bAsync) {
/* /*
@ -571,7 +571,7 @@ void K_recvreq(struct k_args *Reader)
Reader->Ctxt.proc = _k_current_task; Reader->Ctxt.proc = _k_current_task;
set_state_bit(Reader->Ctxt.proc, TF_RECV); set_state_bit(Reader->Ctxt.proc, TF_RECV);
copypacket(&CopyReader, Reader); copy_packet(&CopyReader, Reader);
/* /*
* The [Forw] field can be changed later when added to the Reader's * The [Forw] field can be changed later when added to the Reader's