Lines Matching refs:shellCB
241 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellKeyInit(ShellCB *shellCB) in OsShellKeyInit() argument
246 if (shellCB == NULL) { in OsShellKeyInit()
263 shellCB->cmdKeyLink = (VOID *)cmdKeyLink; in OsShellKeyInit()
267 shellCB->cmdHistoryKeyLink = (VOID *)cmdHistoryLink; in OsShellKeyInit()
268 shellCB->cmdMaskKeyLink = (VOID *)cmdHistoryLink; in OsShellKeyInit()
361 ShellCB *shellCB = NULL; in OsShellCBInit() local
363 shellCB = (ShellCB *)malloc(sizeof(ShellCB)); in OsShellCBInit()
364 if (shellCB == NULL) { in OsShellCBInit()
367 ret = memset_s(shellCB, sizeof(ShellCB), 0, sizeof(ShellCB)); in OsShellCBInit()
372 ret = (INT32)OsShellKeyInit(shellCB); in OsShellCBInit()
376 (VOID)strncpy_s(shellCB->shellWorkingDirectory, PATH_MAX, "/", 2); /* 2:space for "/" */ in OsShellCBInit()
378 g_shellCB = shellCB; in OsShellCBInit()
382 (VOID)free(shellCB); in OsShellCBInit()