posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
_POSIX_THREAD_ATTR_STACKADDR

POSIX Thread Stack Address Attribute option. More...

Functions

int pthread_attr_getstack (const pthread_attr_t *ZRESTRICT attr, void **ZRESTRICT stackaddr, size_t *ZRESTRICT stacksize)
 Get the stack address and size attributes of a thread attributes object.
 
int pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr, size_t stacksize)
 Set the stack address and size attributes of a thread attributes object.
 

Detailed Description

POSIX Thread Stack Address Attribute option.

Function Documentation

◆ pthread_attr_getstack()

int pthread_attr_getstack ( const pthread_attr_t *ZRESTRICT  attr,
void **ZRESTRICT  stackaddr,
size_t *ZRESTRICT  stacksize 
)

Get the stack address and size attributes of a thread attributes object.

Parameters
attrThread attributes object.
stackaddrOutput: stack base address.
stacksizeOutput: stack size in bytes.
Returns
0 on success, or a positive error number on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_attr_getstack.html

◆ pthread_attr_setstack()

int pthread_attr_setstack ( pthread_attr_t attr,
void *  stackaddr,
size_t  stacksize 
)

Set the stack address and size attributes of a thread attributes object.

Parameters
attrThread attributes object.
stackaddrStack base address.
stacksizeStack size in bytes (>= PTHREAD_STACK_MIN).
Returns
0 on success, or a positive error number on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_attr_setstack.html