/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
H A D | It_posix_pthread_108.c | 45 int pshared; in Testcase() local 48 rc = pthread_condattr_getpshared(NULL, &pshared); in Testcase() 57 rc = pthread_condattr_getpshared(&condattr, &pshared); in Testcase() 59 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared); in Testcase()
|
H A D | It_posix_pthread_073.c | 46 int pshared; in Testcase() local 56 rc = pthread_condattr_getpshared(&condattr, &pshared); in Testcase() 59 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared); in Testcase()
|
H A D | It_posix_pthread_079.c | 44 int pshared; in Testcase() local 50 /* Set 'pshared' to INVALID_PSHARED_VALUE. */ in Testcase() 51 ret = pthread_condattr_getpshared(&attr, &pshared); in Testcase() 53 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared); in Testcase()
|
/kernel/liteos_m/testsuites/sample/posix/pthread/ |
H A D | It_posix_pthread_014.c | 36 int pshared; in Testcase() local 42 rc = pthread_condattr_getpshared(NULL, &pshared); in Testcase() 51 rc = pthread_condattr_getpshared(&condattr, &pshared); in Testcase() 53 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
H A D | It_posix_pthread_073.cpp | 41 int pshared; in Testcase() local 51 rc = pthread_condattr_getpshared(&condattr, &pshared); in Testcase() 54 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared); in Testcase()
|
H A D | It_posix_pthread_079.cpp | 37 int pshared; in Testcase() local 43 /* Set 'pshared' to INVALID_PSHARED_VALUE. */ in Testcase() 44 ret = pthread_condattr_getpshared(&attr, &pshared); in Testcase() 46 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared); in Testcase()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | mutex.c | 20 static void __mutex_init(struct mutex *mtx, bool pshared) in __mutex_init() argument 30 if (pshared) in __mutex_init() 39 __mutex_init(mtx, /*pshared=*/false); in mutex_init() 44 __mutex_init(mtx, /*pshared=*/true); in mutex_init_pshared() 79 static void __cond_init(struct cond *cnd, bool pshared) in __cond_init() argument 84 if (pshared) in __cond_init() 93 __cond_init(cnd, /*pshared=*/false); in cond_init() 98 __cond_init(cnd, /*pshared=*/true); in cond_init_pshared()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/semaphore/ |
H A D | sem_timedwait_fuzz.c | 55 int pshared, value; in SemTimedWaitFuzzTest() local 69 pshared = (*(int *)DT_SetGetS32(&g_element[1], DEFAULT_SHARED_VALUE)); in SemTimedWaitFuzzTest() 71 sem_init(&sem, pshared, value); in SemTimedWaitFuzzTest()
|
/kernel/liteos_m/testsuites/sample/posix/mutex/ |
H A D | It_posix_mutex_017.c | 40 int pshared = 0; in Testcase() local 48 ret = sem_init(&sem, pshared, 2); // 2, The initial number of available semaphores. in Testcase()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/ |
H A D | It_posix_mutex_026.c | 64 long pshared; in Testcase() local 66 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in Testcase()
|
H A D | It_posix_mutex_059.c | 47 int pshared; in Testcase() local 55 ret = sem_init(&sem, pshared, 2); // 2, The initial number of available semaphores. in Testcase()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | dma-resv.h | 284 struct dma_fence ***pshared);
|
/kernel/liteos_m/testsuites/sample/posix/ |
H A D | pthread_func_test.c | 899 ret = pthread_condattr_setpshared(&attr, (-100)); /* -100: Set 'pshared' to INVALID_PSHARED_VALUE. */ 917 INT32 pshared; variable 924 /* Set 'pshared' to INVALID_PSHARED_VALUE. */ 925 ret = pthread_condattr_getpshared(&attr, &pshared); 927 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared);
|
/kernel/liteos_m/testsuites/unittest/posix/src/pthread/ |
H A D | pthread_cond_func_test.c | 915 /* Set 'pshared' to INVALID_PSHARED_VALUE. */ 934 INT32 pshared; variable 941 /* Set 'pshared' to INVALID_PSHARED_VALUE. */ 942 ret = pthread_condattr_getpshared(&attr, &pshared); 944 ICUNIT_ASSERT_EQUAL(pshared, PTHREAD_PROCESS_PRIVATE, pshared);
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A D | dma-resv.c | 425 * @pshared: the array of shared fence ptrs returned (array is krealloc'd to 435 struct dma_fence ***pshared) in dma_resv_get_fences_rcu() 515 *pshared = shared; in dma_resv_get_fences_rcu() 432 dma_resv_get_fences_rcu(struct dma_resv *obj, struct dma_fence **pfence_excl, unsigned *pshared_count, struct dma_fence ***pshared) dma_resv_get_fences_rcu() argument
|