UNW_GET_ACCESSORS(3libunwind)

✨ UNW_GET_ACCESSORS ✨

okay bestie, welcome to the UNW_GET_ACCESSORS(3libunwind) page β€” yes that's the manual name, it's giving "programming library", we love that for us πŸ’–


πŸ’… NAME πŸ’…

unw_get_accessors β€” get pointer to accessor call-backs


πŸŽ€ SYNOPSIS πŸŽ€

#include <libunwind.h>

unw_accessors_t *unw_get_accessors(unw_addr_space_t as);

🌸 DESCRIPTION 🌸

so like. the unw_get_accessors() routine returns a pointer to a unw_accessors_t structure, and that struct is literally holding the callback routines that got specified back when the address space as was created (peep unw_create_addr_space(3libunwind) if you wanna know the origin story 🌈).

the returned pointer is guaranteed to remain valid until address space as is destroyed by a call to unw_destroy_addr_space(3libunwind). so don't be out here using it after that, she's gone, periodt πŸ’€

ngl, cute lil note: unw_get_accessors() can be used to retrieve the callback routines for the local address space unw_local_addr_space. iconic behaviour honestly 🫢

⭐ RETURN VALUE ⭐

unw_get_accessors() cannot fail. she always returns a valid (non-NULL) pointer to an unw_accessors_t structure. no drama, no errors, no nothing. slay πŸ‘‘


πŸ”₯ THREAD AND SIGNAL SAFETY πŸ”₯

the unw_get_accessors() routine is thread safe as well as safe to use from a signal handler. both. at the same time. main character energy fr fr ✨


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ¦‹ AUTHOR πŸ¦‹

David Mosberger-Tang Email: dmosberger@gmail.com WWW: http://www.nongnu.org/libunwind/


and that's the whole vibe check bestie πŸ’– this lil page came from the Programming Library, dated 29 August 2023, and it lives under the name UNW_GET_ACCESSORS(3libunwind) β€” go forth and accessor-ise, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from