The
pthread_attr_get_np()
function is used to retrieve the attributes of the specified thread into an
existing
pthread_attr_t
structure.
The attributes' values are the current ones for the target thread, except for
the stack top address if not properly aligned for the architecture, since in
this case its value has been adjusted internally before use.
Argument
dst
must be a pointer to a valid attributes object
(
it was initialized at some point by
pthread_attr_init(3)
and was not destroyed since then
).
After a successful call to
pthread_attr_get_np(),
the individual attributes' values can be retrieved as usual via the
corresponding accessor functions as documented in
pthread_attr(3).
After a failed call to
pthread_attr_get_np(),
the object pointed to by
dst
is left unmodified, and can continue to be used as if the failed call never
happened.