Lines Matching defs:shellCB
464 unsigned int OsShellKeyInit(ShellCB *shellCB)
469 if (shellCB == NULL) {
487 shellCB->cmdKeyLink = (void *)cmdKeyLink;
491 shellCB->cmdHistoryKeyLink = (void *)cmdHistoryLink;
492 shellCB->cmdMaskKeyLink = (void *)cmdHistoryLink;
539 void OsShellHistoryShow(unsigned int value, ShellCB *shellCB)
542 CmdKeyLink *cmdNode = shellCB->cmdHistoryKeyLink;
543 CmdKeyLink *cmdMask = shellCB->cmdMaskKeyLink;
546 (void)pthread_mutex_lock(&shellCB->historyMutex);
567 while (shellCB->shellBufOffset--) {
571 shellCB->shellBufOffset = strlen(cmdMask->cmdString);
572 (void)memset_s(shellCB->shellBuf, SHOW_MAX_LEN, 0, SHOW_MAX_LEN);
573 ret = memcpy_s(shellCB->shellBuf, SHOW_MAX_LEN, cmdMask->cmdString, shellCB->shellBufOffset);
578 shellCB->cmdMaskKeyLink = (void *)cmdMask;
581 (void)pthread_mutex_unlock(&shellCB->historyMutex);