/kernel/liteos_a/apps/shell/src/ |
H A D | shmsg.c | 52 char *GetCmdline(ShellCB *shellCB) in GetCmdline() argument 54 CmdKeyLink *cmdkey = shellCB->cmdKeyLink; in GetCmdline() 57 (void)pthread_mutex_lock(&shellCB->keyMutex); in GetCmdline() 59 (void)pthread_mutex_unlock(&shellCB->keyMutex); in GetCmdline() 65 (void)pthread_mutex_unlock(&shellCB->keyMutex); in GetCmdline() 70 (void)pthread_mutex_unlock(&shellCB->keyMutex); in GetCmdline() 80 static void ShellSaveHistoryCmd(char *string, ShellCB *shellCB) in ShellSaveHistoryCmd() argument 82 CmdKeyLink *cmdHistory = shellCB->cmdHistoryKeyLink; in ShellSaveHistoryCmd() 91 (void)pthread_mutex_lock(&shellCB->historyMutex); in ShellSaveHistoryCmd() 96 (void)pthread_mutex_unlock(&shellCB in ShellSaveHistoryCmd() 117 ShellPend(ShellCB *shellCB) ShellPend() argument 126 ShellNotify(ShellCB *shellCB) ShellNotify() argument 141 ShellCmdLineCheckUDRL(const char ch, ShellCB *shellCB) ShellCmdLineCheckUDRL() argument 178 ShellTaskNotify(ShellCB *shellCB) ShellTaskNotify() argument 192 ParseEnterKey(OutputFunc outputFunc, ShellCB *shellCB) ParseEnterKey() argument 212 ParseCancelKey(OutputFunc outputFunc, ShellCB *shellCB) ParseCancelKey() argument 227 ParseDeleteKey(OutputFunc outputFunc, ShellCB *shellCB) ParseDeleteKey() argument 240 ParseTabKey(OutputFunc outputFunc, ShellCB *shellCB) ParseTabKey() argument 256 ParseNormalChar(char ch, OutputFunc outputFunc, ShellCB *shellCB) ParseNormalChar() argument 271 ShellCmdLineParse(char c, OutputFunc outputFunc, ShellCB *shellCB) ShellCmdLineParse() argument 582 ShellCmdProcess(ShellCB *shellCB) ShellCmdProcess() argument 604 ShellCB *shellCB = (ShellCB *)argv; ShellTask() local 628 ShellTaskInit(ShellCB *shellCB) ShellTaskInit() argument 659 ShellEntry(ShellCB *shellCB) ShellEntry() argument [all...] |
H A D | main.c | 52 static void ShellDeinit(ShellCB *shellCB) in ShellDeinit() argument 54 (void)pthread_mutex_destroy(&shellCB->historyMutex); in ShellDeinit() 55 (void)pthread_mutex_destroy(&shellCB->keyMutex); in ShellDeinit() 56 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdKeyLink); in ShellDeinit() 57 OsShellKeyDeInit((CmdKeyLink *)shellCB->cmdHistoryKeyLink); in ShellDeinit() 58 (void)free(shellCB); in ShellDeinit() 61 static int OsShellCreateTask(ShellCB *shellCB) in OsShellCreateTask() argument 78 ret = ShellTaskInit(shellCB); in OsShellCreateTask() 83 shellCB->shellEntryHandle = pthread_self(); in OsShellCreateTask() 134 ShellCB *shellCB in main() local [all...] |
/kernel/liteos_a/shell/full/src/base/ |
H A D | shmsg.c | 50 CHAR *ShellGetInputBuf(ShellCB *shellCB) in ShellGetInputBuf() argument 52 CmdKeyLink *cmdkey = shellCB->cmdKeyLink; in ShellGetInputBuf() 55 (VOID)pthread_mutex_lock(&shellCB->keyMutex); in ShellGetInputBuf() 57 (VOID)pthread_mutex_unlock(&shellCB->keyMutex); in ShellGetInputBuf() 63 (VOID)pthread_mutex_unlock(&shellCB->keyMutex); in ShellGetInputBuf() 68 STATIC VOID ShellSaveHistoryCmd(const CHAR *string, ShellCB *shellCB) in ShellSaveHistoryCmd() argument 70 CmdKeyLink *cmdHistory = shellCB->cmdHistoryKeyLink; in ShellSaveHistoryCmd() 78 (VOID)pthread_mutex_lock(&shellCB->historyMutex); in ShellSaveHistoryCmd() 83 (VOID)pthread_mutex_unlock(&shellCB->historyMutex); in ShellSaveHistoryCmd() 93 (VOID)pthread_mutex_unlock(&shellCB in ShellSaveHistoryCmd() 104 ShellNotify(ShellCB *shellCB) ShellNotify() argument 115 ShellCmdLineCheckUDRL(const CHAR ch, ShellCB *shellCB) ShellCmdLineCheckUDRL() argument 152 ShellCmdLineParse(CHAR c, pf_OUTPUT outputFunc, ShellCB *shellCB) ShellCmdLineParse() argument 333 ShellCB *shellCB = (ShellCB *)param; ShellEntry() local 362 ShellCmdProcess(ShellCB *shellCB) ShellCmdProcess() argument 382 ShellCB *shellCB = (ShellCB *)param1; ShellTask() local 409 ShellTaskInit(ShellCB *shellCB) ShellTaskInit() argument 434 ShellEntryInit(ShellCB *shellCB) ShellEntryInit() argument [all...] |
H A D | show.c | 50 STATIC UINT32 OsShellCreateTask(ShellCB *shellCB) in OsShellCreateTask() argument 52 UINT32 ret = ShellTaskInit(shellCB); in OsShellCreateTask() 57 return ShellEntryInit(shellCB); in OsShellCreateTask() 71 ShellCB *shellCB = (ShellCB *)consoleCB->shellHandle; local 72 if (memset_s(shellCB, sizeof(ShellCB), 0, sizeof(ShellCB)) != EOK) { 76 shellCB->consoleID = (UINT32)consoleId; 77 ret = (UINT32)pthread_mutex_init(&shellCB->keyMutex, NULL); 81 ret = (UINT32)pthread_mutex_init(&shellCB->historyMutex, NULL); 86 ret = OsShellKeyInit(shellCB); 90 if (strncpy_s(shellCB 140 ShellCB *shellCB = NULL; global() local 164 ShellCB *shellCB = NULL; global() local [all...] |
/kernel/liteos_a/shell/full/include/ |
H A D | shmsg.h | 46 extern UINT32 ShellTaskInit(ShellCB *shellCB);
47 extern UINT32 ShellEntryInit(ShellCB *shellCB);
48 extern VOID ShellCmdLineParse(CHAR c, pf_OUTPUT outputFunc, ShellCB *shellCB);
|
H A D | shcmd.h | 97 extern VOID OsShellHistoryShow(UINT32 value, ShellCB *shellCB); 98 extern UINT32 OsShellKeyInit(ShellCB *shellCB);
|
/kernel/liteos_a/apps/shell/include/ |
H A D | shmsg.h | 64 extern int ShellTaskInit(ShellCB *shellCB);
66 extern void ShellCmdLineParse(char c, OutputFunc outputFunc, ShellCB *shellCB);
67 extern int ShellNotify(ShellCB *shellCB);
|
H A D | shcmd.h | 62 extern void OsShellHistoryShow(unsigned int value, ShellCB *shellCB); 63 extern unsigned int OsShellKeyInit(ShellCB *shellCB);
|
H A D | show.h | 47 extern int OsShellDeinit(ShellCB *shellCB);
|
H A D | shell_pri.h | 43 extern void ShellEntry(ShellCB *shellCB);
|
/kernel/liteos_m/components/shell/include/ |
H A D | shcmd.h | 90 extern UINT32 OsShellKeyInit(ShellCB *shellCB);
|