Home
last modified time | relevance | path

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

/kernel/liteos_a/kernel/common/
Dconsole.c647 CHAR *sbuffer = NULL; in ConsoleRead() local
678 sbuffer = userBuf ? LOS_MemAlloc(m_aucSysMem0, bufLen) : buffer; in ConsoleRead()
679 if (sbuffer == NULL) { in ConsoleRead()
684 ret = DoRead(consoleCB, sbuffer, bufLen, privFilep, fileOps); in ConsoleRead()
690 if (LOS_ArchCopyToUser(buffer, sbuffer, bufLen) != 0) { in ConsoleRead()
695 LOS_MemFree(m_aucSysMem0, sbuffer); in ConsoleRead()
701 if ((userBuf) && (sbuffer != NULL)) { in ConsoleRead()
702 LOS_MemFree(m_aucSysMem0, sbuffer); in ConsoleRead()
747 CHAR *sbuffer = NULL; in ConsoleWrite() local
776 sbuffer = userBuf ? LOS_MemAlloc(m_aucSysMem0, bufLen) : (CHAR *)buffer; in ConsoleWrite()
[all …]