feature: Support pipe and poll interfaces.
支持pipe管道驱动,支持poll多文件描述符检测接口。 Signed-off-by: JerryH <huangjieliang@huawei.com> Change-Id: Ida1f29709affbc91a26b8518e4a77b8e5469be19
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user