Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/tests/posix/common/src/
Dpthread_attr.c285 void *stackaddr = (void *)BIOS_FOOD; in ZTEST() local
294 zassert_equal(pthread_attr_getstack(NULL, &stackaddr, NULL), EINVAL); in ZTEST()
295 zassert_equal(pthread_attr_getstack(NULL, &stackaddr, &stacksize), EINVAL); in ZTEST()
296 zassert_equal(pthread_attr_getstack(&uninit_attr, &stackaddr, &stacksize), in ZTEST()
301 zassert_equal(pthread_attr_getstack(&attr, &stackaddr, NULL), EINVAL); in ZTEST()
304 zassert_ok(pthread_attr_getstack(&attr, &stackaddr, &stacksize)); in ZTEST()
305 zassert_not_equal(stackaddr, (void *)BIOS_FOOD); in ZTEST()
311 void *stackaddr; in ZTEST() local
317 zassert_ok(pthread_attr_getstack(&attr, &stackaddr, &stacksize)); in ZTEST()
325 zassert_equal(pthread_attr_setstack(NULL, stackaddr, 0), EINVAL); in ZTEST()
[all …]
/Zephyr-Core-3.6.0/include/zephyr/posix/
Dpthread.h429 void **stackaddr, size_t *stacksize);
430 int pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr,
/Zephyr-Core-3.6.0/lib/posix/options/
Dpthread.c354 int pthread_attr_setstack(pthread_attr_t *_attr, void *stackaddr, size_t stacksize) in pthread_attr_setstack() argument
359 if (stackaddr == NULL) { in pthread_attr_setstack()
378 attr->stack = stackaddr; in pthread_attr_setstack()
1158 int pthread_attr_getstack(const pthread_attr_t *_attr, void **stackaddr, size_t *stacksize) in pthread_attr_getstack() argument
1162 if (!__attr_is_initialized(attr) || (stackaddr == NULL) || (stacksize == NULL)) { in pthread_attr_getstack()
1166 *stackaddr = attr->stack; in pthread_attr_getstack()