Rename K_PipeList to _k_pipe_list
Updating global variable's name to follow a consistent naming convention. Change accomplished with the following script: #!/bin/bash echo "Searching for ${1} to replace with ${2}" find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" \) \ ! -path "./host/src/genIdt/*" \ ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g'; Change-Id: I77d459388aa26eaa52d0f59234d761f3ca7d1496 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
652796d345
commit
86c128d3ba
|
@ -43,7 +43,7 @@ void InitPipe(void)
|
|||
int i;
|
||||
struct pipe_struct *pPipe;
|
||||
|
||||
for (i = 0, pPipe = K_PipeList; i < K_PipeCount; i++, pPipe++) {
|
||||
for (i = 0, pPipe = _k_pipe_list; i < K_PipeCount; i++, pPipe++) {
|
||||
pPipe->Readers = NULL;
|
||||
pPipe->Writers = NULL;
|
||||
BuffInit((unsigned char *)pPipe->Buffer,
|
||||
|
|
|
@ -72,7 +72,7 @@ void K_ChRecvReq(struct k_args *RequestOrig)
|
|||
{
|
||||
mycopypacket(&RequestProc, Request);
|
||||
RequestProc->Args.ChProc.ReqInfo.ChRef.pPipe =
|
||||
&(K_PipeList[OBJ_INDEX(pipeId)]);
|
||||
&(_k_pipe_list[OBJ_INDEX(pipeId)]);
|
||||
switch (ChxxxGetReqType(&(RequestProc->Args))) {
|
||||
case _SYNCREQ:
|
||||
RequestProc->Args.ChProc.pData =
|
||||
|
|
|
@ -82,7 +82,7 @@ void K_ChSendReq(struct k_args *RequestOrig)
|
|||
{
|
||||
mycopypacket(&RequestProc, Request);
|
||||
RequestProc->Args.ChProc.ReqInfo.ChRef.pPipe =
|
||||
&(K_PipeList[OBJ_INDEX(pipeId)]);
|
||||
&(_k_pipe_list[OBJ_INDEX(pipeId)]);
|
||||
switch (ChxxxGetReqType(&(RequestProc->Args))) {
|
||||
case _SYNCREQ:
|
||||
RequestProc->Args.ChProc.pData =
|
||||
|
|
|
@ -52,7 +52,7 @@ extern struct mutex_struct _k_mutex_list[];
|
|||
extern struct sem_struct _k_sem_list[];
|
||||
extern struct que_struct _k_fifo_list[];
|
||||
extern struct pool_struct _k_mem_pool_list[];
|
||||
extern struct pipe_struct K_PipeList[];
|
||||
extern struct pipe_struct _k_pipe_list[];
|
||||
|
||||
#ifndef LITE
|
||||
extern int K_MapCount;
|
||||
|
|
|
@ -577,7 +577,7 @@ def kernel_main_c_pipes():
|
|||
kernel_main_c_out("\nint K_PipeCount = %d;\n" % (total_pipes))
|
||||
|
||||
if (total_pipes == 0):
|
||||
kernel_main_c_out("\nstruct pipe_struct * K_PipeList = NULL;\n")
|
||||
kernel_main_c_out("\nstruct pipe_struct * _k_pipe_list = NULL;\n")
|
||||
return
|
||||
|
||||
# pipe buffers
|
||||
|
@ -591,7 +591,7 @@ def kernel_main_c_pipes():
|
|||
# pipe descriptors
|
||||
|
||||
kernel_main_c_out("\n" +
|
||||
"struct pipe_struct K_PipeList[%d] =\n" % (total_pipes) +
|
||||
"struct pipe_struct _k_pipe_list[%d] =\n" % (total_pipes) +
|
||||
"{\n")
|
||||
for pipe in pipe_list:
|
||||
size = pipe[1]
|
||||
|
|
Loading…
Reference in a new issue