Home
last modified time | relevance | path

Searched refs:guardsize (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/tests/posix/threads_ext/src/
Dmain.c22 size_t guardsize; in ZTEST() local
29 zassert_equal(pthread_attr_getguardsize(NULL, &guardsize), EINVAL); in ZTEST()
30 zassert_equal(pthread_attr_getguardsize(&uninit_attr, &guardsize), EINVAL); in ZTEST()
35 guardsize = BIOS_FOOD; in ZTEST()
36 zassert_ok(pthread_attr_getguardsize(&attr, &guardsize)); in ZTEST()
37 zassert_not_equal(guardsize, BIOS_FOOD); in ZTEST()
42 size_t guardsize = CONFIG_POSIX_PTHREAD_ATTR_GUARDSIZE_DEFAULT; in ZTEST() local
47 zassert_ok(pthread_attr_getguardsize(&attr, &guardsize)); in ZTEST()
54 zassert_equal(pthread_attr_setguardsize(NULL, guardsize), EINVAL); in ZTEST()
56 guardsize), in ZTEST()
[all …]
/Zephyr-latest/lib/posix/options/
Dpthread.c659 &t->thread, t->attr.stack, __get_attr_stacksize(&t->attr) + t->attr.guardsize, in pthread_create()
944 attr->guardsize = CONFIG_POSIX_PTHREAD_ATTR_GUARDSIZE_DEFAULT; in pthread_attr_init()
949 attr->stack = k_thread_stack_alloc(DYNAMIC_STACK_SIZE + attr->guardsize, in pthread_attr_init()
1321 k_thread_stack_alloc(stacksize + attr->guardsize, k_is_user_context() ? K_USER : 0); in pthread_attr_setstacksize()
1329 __get_attr_stacksize(attr) + attr->guardsize); in pthread_attr_setstacksize()
1332 LOG_DBG("Allocated thread stack %zu@%p", stacksize + attr->guardsize, new_stack); in pthread_attr_setstacksize()
1366 int pthread_attr_getguardsize(const pthread_attr_t *ZRESTRICT _attr, size_t *ZRESTRICT guardsize) in pthread_attr_getguardsize() argument
1370 if (!__attr_is_initialized(attr) || guardsize == NULL) { in pthread_attr_getguardsize()
1374 *guardsize = attr->guardsize; in pthread_attr_getguardsize()
1379 int pthread_attr_setguardsize(pthread_attr_t *_attr, size_t guardsize) in pthread_attr_setguardsize() argument
[all …]
Dposix_internal.h29 uint16_t guardsize : CONFIG_POSIX_PTHREAD_ATTR_GUARDSIZE_BITS; member
DKconfig.pthread119 int "Significant bits for pthread_attr_t guardsize"
124 pthread_attr_t guardsize. Valid guardsizes are in the range
127 Actual guardsize values may be rounded-up.
/Zephyr-latest/include/zephyr/posix/
Dpthread.h406 int pthread_attr_getguardsize(const pthread_attr_t *ZRESTRICT attr, size_t *ZRESTRICT guardsize);
408 int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize);