Searched refs:guardsize (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/tests/posix/threads_ext/src/ |
D | main.c | 22 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/ |
D | pthread.c | 659 &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 …]
|
D | posix_internal.h | 29 uint16_t guardsize : CONFIG_POSIX_PTHREAD_ATTR_GUARDSIZE_BITS; member
|
D | Kconfig.pthread | 119 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/ |
D | pthread.h | 406 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);
|