Searched refs:muxHandle (Results 1 - 11 of 11) sorted by relevance
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/mux/smoke/ |
H A D | It_los_mutex_004.c | 43 LosMux muxHandle; in Testcase() local 45 ret = LosMuxCreate(&muxHandle); in Testcase() 48 ret = LOS_MuxLock(&muxHandle, LOS_WAIT_FOREVER); in Testcase() 51 ret = LOS_MuxLock(&muxHandle, 1); in Testcase() 54 ret = LOS_MuxDestroy(&muxHandle); in Testcase() 57 ret = LOS_MuxUnlock(&muxHandle); in Testcase() 60 ret = LOS_MuxDestroy(&muxHandle); in Testcase() 63 ret = LOS_MuxUnlock(&muxHandle); in Testcase() 66 ret = LOS_MuxDestroy(&muxHandle); in Testcase() 69 ret = LOS_MuxLock(&muxHandle, in Testcase() [all...] |
H A D | It_los_mutex_003.c | 43 LosMux muxHandle; in Testcase() local 45 ret = LosMuxCreate(&muxHandle); in Testcase() 48 ret = LOS_MuxLock(&muxHandle, LOS_WAIT_FOREVER); in Testcase() 51 ret = LOS_MuxDestroy(&muxHandle); in Testcase() 54 ret = LOS_MuxUnlock(&muxHandle); in Testcase() 57 ret = LOS_MuxDestroy(&muxHandle); in Testcase() 60 ret = LOS_MuxLock(&muxHandle, LOS_WAIT_FOREVER); in Testcase()
|
/kernel/liteos_m/testsuites/sample/kernel/mux/ |
H A D | It_los_mutex_004.c | 39 UINT32 muxHandle;
in Testcase() local 41 ret = LOS_MuxCreate(&muxHandle);
in Testcase() 44 ret = LOS_MuxPend(muxHandle, LOS_WAIT_FOREVER);
in Testcase() 47 ret = LOS_MuxPend(muxHandle, 1);
in Testcase() 50 ret = LOS_MuxDelete(muxHandle);
in Testcase() 53 ret = LOS_MuxPost(muxHandle);
in Testcase() 56 ret = LOS_MuxDelete(muxHandle);
in Testcase() 59 ret = LOS_MuxPost(muxHandle);
in Testcase() 62 ret = LOS_MuxDelete(muxHandle);
in Testcase() 65 ret = LOS_MuxPend(muxHandle, in Testcase() [all...] |
H A D | It_los_mutex_005.c | 41 UINT32 muxHandle;
in Testcase() local 43 ret = LOS_MuxCreate(&muxHandle);
in Testcase() 46 ret = LOS_MuxPend(muxHandle, 0);
in Testcase() 49 ret = LOS_MuxPend(muxHandle, 0);
in Testcase() 52 ret = LOS_MuxPost(muxHandle);
in Testcase() 55 ret = LOS_MuxPost(muxHandle);
in Testcase() 58 ret = LOS_MuxPost(muxHandle);
in Testcase() 61 ret = LOS_MuxDelete(muxHandle);
in Testcase() 64 ret = LOS_MuxPost(muxHandle);
in Testcase()
|
H A D | It_los_mutex_003.c | 39 UINT32 muxHandle = 0;
in Testcase() local 41 ret = LOS_MuxCreate(&muxHandle);
in Testcase() 44 ret = LOS_MuxPend(muxHandle, LOS_WAIT_FOREVER);
in Testcase() 47 ret = LOS_MuxDelete(muxHandle);
in Testcase() 50 ret = LOS_MuxPost(muxHandle);
in Testcase() 53 ret = LOS_MuxDelete(muxHandle);
in Testcase() 56 ret = LOS_MuxPend(muxHandle, LOS_WAIT_FOREVER);
in Testcase()
|
H A D | It_los_mutex_006.c | 39 UINT32 muxHandle;
in Testcase() local 42 ret = LOS_MuxCreate(&muxHandle);
in Testcase() 48 ret = LOS_MuxDelete(muxHandle);
in Testcase() 51 ret = LOS_MuxDelete(muxHandle);
in Testcase()
|
H A D | It_los_mutex_022.c | 39 UINT32 muxHandle[LOSCFG_BASE_IPC_MUX_LIMIT + 1];
in Testcase() local 50 ret = LOS_MuxCreate(&muxHandle[index]);
in Testcase() 60 ret = LOS_MuxCreate(&muxHandle[index]);
in Testcase() 65 ret = LOS_MuxDelete(muxHandle[indexi]);
in Testcase()
|
/kernel/liteos_m/kernel/src/ |
H A D | los_mux.c | 85 Output : muxHandle ------ Mutex operation handle
88 LITE_OS_SEC_TEXT_INIT UINT32 LOS_MuxCreate(UINT32 *muxHandle)
in LOS_MuxCreate() argument 96 if (muxHandle == NULL) {
in LOS_MuxCreate() 114 *muxHandle = (UINT32)muxCreated->muxID;
in LOS_MuxCreate() 125 Input : muxHandle ------Mutex operation handle
129 LITE_OS_SEC_TEXT_INIT UINT32 LOS_MuxDelete(UINT32 muxHandle)
in LOS_MuxDelete() argument 136 if (muxHandle >= (UINT32)LOSCFG_BASE_IPC_MUX_LIMIT) {
in LOS_MuxDelete() 140 muxDeleted = GET_MUX(muxHandle);
in LOS_MuxDelete() 190 Input : muxHandle ------ Mutex operation handleone
195 LITE_OS_SEC_TEXT UINT32 LOS_MuxPend(UINT32 muxHandle, UINT3 argument 271 LOS_MuxPost(UINT32 muxHandle) LOS_MuxPost() argument [all...] |
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/mux/full/ |
H A D | It_los_mutex_006.c | 43 LosMux muxHandle, muxHandle2; in Testcase() local 45 ret = LosMuxCreate(&muxHandle); in Testcase() 51 ret = LOS_MuxDestroy(&muxHandle); in Testcase() 54 ret = LOS_MuxDestroy(&muxHandle); in Testcase()
|
/kernel/liteos_m/kernel/include/ |
H A D | los_mux.h | 189 * This API is used to create a mutex. A mutex handle is assigned to muxHandle when the mutex is created successfully.
196 * @param muxHandle [OUT] Handle pointer of the successfully created mutex. The value of handle should be in
199 * @retval #LOS_ERRNO_MUX_PTR_NULL The muxHandle pointer is NULL.
206 extern UINT32 LOS_MuxCreate(UINT32 *muxHandle);
221 * @param muxHandle [IN] Handle of the mutex to be deleted. The value of handle should be in
231 extern UINT32 LOS_MuxDelete(UINT32 muxHandle);
250 * @param muxHandle [IN] Handle of the mutex to be waited on. The value of handle should be
266 extern UINT32 LOS_MuxPend(UINT32 muxHandle, UINT32 timeout);
281 * @param muxHandle [IN] Handle of the mutex to be released. The value of handle should be in
292 extern UINT32 LOS_MuxPost(UINT32 muxHandle);
[all...] |
/kernel/liteos_m/kal/posix/src/ |
H A D | pthread_mutex.c | 133 UINT32 muxHandle; in pthread_mutex_init() local 150 ret = LOS_MuxCreate(&muxHandle); in pthread_mutex_init() 157 mutex->handle = muxHandle; in pthread_mutex_init() 220 UINT32 muxHandle = mutex->handle; in MuxPendForPosix() local 222 muxPended = GET_MUX(muxHandle); in MuxPendForPosix() 282 UINT32 muxHandle = mutex->handle; in MuxPostForPosix() local 284 muxPosted = GET_MUX(muxHandle); in MuxPostForPosix()
|
Completed in 4 milliseconds