Home
last modified time | relevance | path

Searched refs:CmdKeyLink (Results 1 – 9 of 9) sorted by relevance

/kernel/liteos_a/apps/shell/src/
Dshcmd.c466 CmdKeyLink *cmdKeyLink = NULL; in OsShellKeyInit()
467 CmdKeyLink *cmdHistoryLink = NULL; in OsShellKeyInit()
473 cmdKeyLink = (CmdKeyLink *)malloc(sizeof(CmdKeyLink)); in OsShellKeyInit()
478 cmdHistoryLink = (CmdKeyLink *)malloc(sizeof(CmdKeyLink)); in OsShellKeyInit()
496 void OsShellKeyDeInit(CmdKeyLink *cmdKeyLink) in OsShellKeyDeInit()
498 CmdKeyLink *cmdtmp = NULL; in OsShellKeyDeInit()
504 cmdtmp = SH_LIST_ENTRY(cmdKeyLink->list.pstNext, CmdKeyLink, list); in OsShellKeyDeInit()
513 void OsShellCmdPush(const char *string, CmdKeyLink *cmdKeyLink) in OsShellCmdPush()
515 CmdKeyLink *cmdNewNode = NULL; in OsShellCmdPush()
523 cmdNewNode = (CmdKeyLink *)malloc(sizeof(CmdKeyLink) + len + 1); in OsShellCmdPush()
[all …]
Dshmsg.c54 CmdKeyLink *cmdkey = shellCB->cmdKeyLink; in GetCmdline()
55 CmdKeyLink *cmdNode = NULL; in GetCmdline()
63 cmdNode = SH_LIST_ENTRY(cmdkey->list.pstNext, CmdKeyLink, list); in GetCmdline()
82 CmdKeyLink *cmdHistory = shellCB->cmdHistoryKeyLink; in ShellSaveHistoryCmd()
83 CmdKeyLink *cmdkey = SH_LIST_ENTRY(string, CmdKeyLink, cmdString); in ShellSaveHistoryCmd()
84 CmdKeyLink *cmdNxt = NULL; in ShellSaveHistoryCmd()
93 cmdNxt = SH_LIST_ENTRY(cmdHistory->list.pstPrev, CmdKeyLink, list); in ShellSaveHistoryCmd()
102 cmdNxt = SH_LIST_ENTRY(cmdHistory->list.pstNext, CmdKeyLink, list); in ShellSaveHistoryCmd()
Dmain.c56 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdKeyLink); in ShellDeinit()
57 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdHistoryKeyLink); in ShellDeinit()
/kernel/liteos_a/shell/full/src/base/
Dshcmd.c597 CmdKeyLink *cmdKeyLink = NULL; in OsShellKeyInit()
598 CmdKeyLink *cmdHistoryLink = NULL; in OsShellKeyInit()
603 cmdKeyLink = (CmdKeyLink *)LOS_MemAlloc(m_aucSysMem0, sizeof(CmdKeyLink)); in OsShellKeyInit()
608 cmdHistoryLink = (CmdKeyLink *)LOS_MemAlloc(m_aucSysMem0, sizeof(CmdKeyLink)); in OsShellKeyInit()
626 LITE_OS_SEC_TEXT_MINOR VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink) in OsShellKeyDeInit()
628 CmdKeyLink *cmdtmp = NULL; in OsShellKeyDeInit()
634 cmdtmp = LOS_DL_LIST_ENTRY(cmdKeyLink->list.pstNext, CmdKeyLink, list); in OsShellKeyDeInit()
665 LITE_OS_SEC_TEXT_MINOR VOID OsShellCmdPush(const CHAR *string, CmdKeyLink *cmdKeyLink) in OsShellCmdPush()
667 CmdKeyLink *cmdNewNode = NULL; in OsShellCmdPush()
675 cmdNewNode = (CmdKeyLink *)LOS_MemAlloc(m_aucSysMem0, sizeof(CmdKeyLink) + len + 1); in OsShellCmdPush()
[all …]
Dshmsg.c52 CmdKeyLink *cmdkey = shellCB->cmdKeyLink; in ShellGetInputBuf()
53 CmdKeyLink *cmdNode = NULL; in ShellGetInputBuf()
61 cmdNode = LOS_DL_LIST_ENTRY(cmdkey->list.pstNext, CmdKeyLink, list); in ShellGetInputBuf()
70 CmdKeyLink *cmdHistory = shellCB->cmdHistoryKeyLink; in ShellSaveHistoryCmd()
71 CmdKeyLink *cmdkey = LOS_DL_LIST_ENTRY(string, CmdKeyLink, cmdString); in ShellSaveHistoryCmd()
72 CmdKeyLink *cmdNxt = NULL; in ShellSaveHistoryCmd()
80 cmdNxt = LOS_DL_LIST_ENTRY(cmdHistory->list.pstPrev, CmdKeyLink, list); in ShellSaveHistoryCmd()
89 cmdNxt = LOS_DL_LIST_ENTRY(cmdHistory->list.pstNext, CmdKeyLink, list); in ShellSaveHistoryCmd()
397 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdKeyLink); in ShellTask()
398 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdHistoryKeyLink); in ShellTask()
/kernel/liteos_a/apps/shell/include/
Dshcmd.h53 } CmdKeyLink; typedef
61 extern void OsShellCmdPush(const char *string, CmdKeyLink *cmdKeyLink);
64 extern void OsShellKeyDeInit(CmdKeyLink *cmdKeyLink);
/kernel/liteos_a/shell/full/include/
Dshcmd.h78 } CmdKeyLink; typedef
96 extern VOID OsShellCmdPush(const CHAR *string, CmdKeyLink *cmdKeyLink);
99 extern VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink);
/kernel/liteos_m/components/shell/src/base/
Dshcmd.c243 CmdKeyLink *cmdKeyLink = NULL; in OsShellKeyInit()
244 CmdKeyLink *cmdHistoryLink = NULL; in OsShellKeyInit()
249 cmdKeyLink = (CmdKeyLink *)LOS_MemAlloc(m_aucSysMem0, sizeof(CmdKeyLink)); in OsShellKeyInit()
254 cmdHistoryLink = (CmdKeyLink *)LOS_MemAlloc(m_aucSysMem0, sizeof(CmdKeyLink)); in OsShellKeyInit()
272 LITE_OS_SEC_TEXT_MINOR VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink) in OsShellKeyDeInit()
274 CmdKeyLink *cmdtmp = NULL; in OsShellKeyDeInit()
280 cmdtmp = LOS_DL_LIST_ENTRY(cmdKeyLink->list.pstNext, CmdKeyLink, list); in OsShellKeyDeInit()
/kernel/liteos_m/components/shell/include/
Dshcmd.h74 } CmdKeyLink; typedef
91 extern VOID OsShellKeyDeInit(CmdKeyLink *cmdKeyLink);