feature: Support pipe and poll interfaces.

支持pipe管道驱动,支持poll多文件描述符检测接口。

Signed-off-by: JerryH <huangjieliang@huawei.com>
Change-Id: Ida1f29709affbc91a26b8518e4a77b8e5469be19
This commit is contained in:
JerryH
2022-01-14 10:10:11 +08:00
parent b98aa4eacd
commit 4890222e7c
10 changed files with 1139 additions and 6 deletions

View File

@@ -74,6 +74,10 @@
#include "los_lmk.h"
#endif
#if (LOSCFG_POSIX_PIPE_API == 1)
#include "pipe_impl.h"
#endif
/*****************************************************************************
Function : LOS_Reboot
Description : system exception, die in here, wait for watchdog.
@@ -238,6 +242,14 @@ LITE_OS_SEC_TEXT_INIT UINT32 LOS_KernelInit(VOID)
}
#endif
#if (LOSCFG_POSIX_PIPE_API == 1)
ret = OsPipeInit();
if (ret != LOS_OK) {
PRINT_ERR("Pipe init failed!\n");
return ret;
}
#endif
return LOS_OK;
}