Home
last modified time | relevance | path

Searched refs:cmdKeyLink (Results 1 – 13 of 13) sorted by relevance

/kernel/liteos_a/apps/shell/src/
Dshcmd.c466 CmdKeyLink *cmdKeyLink = NULL; in OsShellKeyInit() local
473 cmdKeyLink = (CmdKeyLink *)malloc(sizeof(CmdKeyLink)); in OsShellKeyInit()
474 if (cmdKeyLink == NULL) { in OsShellKeyInit()
480 free(cmdKeyLink); in OsShellKeyInit()
485 cmdKeyLink->count = 0; in OsShellKeyInit()
486 SH_ListInit(&(cmdKeyLink->list)); in OsShellKeyInit()
487 shellCB->cmdKeyLink = (void *)cmdKeyLink; in OsShellKeyInit()
496 void OsShellKeyDeInit(CmdKeyLink *cmdKeyLink) in OsShellKeyDeInit() argument
499 if (cmdKeyLink == NULL) { in OsShellKeyDeInit()
503 while (!SH_ListEmpty(&(cmdKeyLink->list))) { in OsShellKeyDeInit()
[all …]
Dmain.c56 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdKeyLink); in ShellDeinit()
Dshmsg.c54 CmdKeyLink *cmdkey = shellCB->cmdKeyLink; in GetCmdline()
183 OsShellCmdPush(shellCB->shellBuf, shellCB->cmdKeyLink); in ShellTaskNotify()
/kernel/liteos_m/components/shell/src/base/
Dshcmd.c243 CmdKeyLink *cmdKeyLink = NULL; in OsShellKeyInit() local
249 cmdKeyLink = (CmdKeyLink *)LOS_MemAlloc(m_aucSysMem0, sizeof(CmdKeyLink)); in OsShellKeyInit()
250 if (cmdKeyLink == NULL) { in OsShellKeyInit()
256 (VOID)LOS_MemFree(m_aucSysMem0, cmdKeyLink); in OsShellKeyInit()
261 cmdKeyLink->count = 0; in OsShellKeyInit()
262 LOS_ListInit(&(cmdKeyLink->list)); in OsShellKeyInit()
263 shellCB->cmdKeyLink = (VOID *)cmdKeyLink; in OsShellKeyInit()
272 LITE_OS_SEC_TEXT_MINOR VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink) in OsShellKeyDeInit() argument
275 if (cmdKeyLink == NULL) { in OsShellKeyDeInit()
279 while (!LOS_ListEmpty(&(cmdKeyLink->list))) { in OsShellKeyDeInit()
[all …]
/kernel/liteos_a/shell/full/src/base/
Dshcmd.c597 CmdKeyLink *cmdKeyLink = NULL; in OsShellKeyInit() local
603 cmdKeyLink = (CmdKeyLink *)LOS_MemAlloc(m_aucSysMem0, sizeof(CmdKeyLink)); in OsShellKeyInit()
604 if (cmdKeyLink == NULL) { in OsShellKeyInit()
610 (VOID)LOS_MemFree(m_aucSysMem0, cmdKeyLink); in OsShellKeyInit()
615 cmdKeyLink->count = 0; in OsShellKeyInit()
616 LOS_ListInit(&(cmdKeyLink->list)); in OsShellKeyInit()
617 shellCB->cmdKeyLink = (VOID *)cmdKeyLink; in OsShellKeyInit()
626 LITE_OS_SEC_TEXT_MINOR VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink) in OsShellKeyDeInit() argument
629 if (cmdKeyLink == NULL) { in OsShellKeyDeInit()
633 while (!LOS_ListEmpty(&(cmdKeyLink->list))) { in OsShellKeyDeInit()
[all …]
Dshmsg.c52 CmdKeyLink *cmdkey = shellCB->cmdKeyLink; in ShellGetInputBuf()
167 OsShellCmdPush(shellCB->shellBuf, shellCB->cmdKeyLink); in ShellCmdLineParse()
397 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdKeyLink); in ShellTask()
Dshow.c112 (VOID)LOS_MemFree((VOID *)m_aucSysMem0, shellCB->cmdKeyLink);
/kernel/liteos_a/apps/shell/include/
Dshcmd.h61 extern void OsShellCmdPush(const char *string, CmdKeyLink *cmdKeyLink);
64 extern void OsShellKeyDeInit(CmdKeyLink *cmdKeyLink);
Dshell.h75 void *cmdKeyLink; member
/kernel/liteos_a/shell/full/include/
Dshcmd.h96 extern VOID OsShellCmdPush(const CHAR *string, CmdKeyLink *cmdKeyLink);
99 extern VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink);
Dshell.h90 VOID *cmdKeyLink; member
/kernel/liteos_m/components/shell/include/
Dshell.h89 VOID *cmdKeyLink; member
Dshcmd.h91 extern VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink);