UNW_FLUSH_CACHE(3libunwind)
π UNW_FLUSH_CACHE π
okay bestie, welcome to unw_flush_cache(3libunwind) β this one lives in the Programming Library section, so you already know it's giving serious toolchain energy. let's get into it π«Ά
β¨ NAME β¨
unw_flush_cache β flush cached info
πΈ SYNOPSIS πΈ
#include <libunwind.h>
void unw_flush_cache(unw_addr_space_t as, unw_word_t lo, unw_word_t hi);
π¦ DESCRIPTION π¦
so the unw_flush_cache() routine flushes all cached info as it relates to the address range lo to hi (non-inclusive, so like, hi is NOT invited to the party) in the target address space as. π
and that's not even all of it β in addition, every bit of info cached for address space as that is not tied to a particular code range also gets flushed. like, for example? the address of the dynamic registration list is not tied to a code range, and its cached value (if there is one) gets flushed by a call to this routine. periodt. π
the address range you specify with lo and hi should be understood as a hint: unw_flush_cache() may flush more information than requested, but never less. in other words, unw_flush_cache() may overflush, but it will not underflush. no cap. π§
special case alert!! if argumentsloandhiare both0, then all information cached on behalf of address spaceasis flushed. that's the whole thing, gone, iconic behaviour honestly π
β RETURN VALUE β
the unw_flush_cache() routine cannot fail and does not return a value. she simply does not miss. πβ¨
π₯ THREAD AND SIGNAL SAFETY π₯
the unw_flush_cache() routine is thread safe as well as safe to use from a signal handler. main character energy in both contexts, we love to see it π
π SEE ALSO π
libunwind(3libunwind)unw_set_caching_policy(3libunwind)unw_set_cache_size(3libunwind)
π AUTHOR π
David Mosberger-Tang
- Email:
dmosberger@gmail.com - WWW:
http://www.nongnu.org/libunwind/
and that's the whole page bestie!! this gem is from the Programming Library manual, dated 29 August 2023 β so when you're out here calling unw_flush_cache, just know you're standing on the shoulders of legends. slay responsibly ππΈπ¦π
π¦ where this page comes from
- alpine 3.22: libunwind-doc 1.8.1-r0 Β· MIT
- alpine 3.23: libunwind-doc 1.8.1-r0 Β· MIT
- alpine 3.24: libunwind-doc 1.8.3-r0 Β· MIT
- arch rolling: libunwind 1.8.3-1 Β· MIT
- epel 10: libunwind-devel 1.8.0-4.el10_0 Β· MIT
- epel 9: libunwind-devel 1.8.0-4.el9 Β· MIT
- fedora 43: libunwind-devel 1.8.1-3.fc43 Β· MIT
- fedora 43: libunwind-devel 1.8.1-3.fc43 Β· MIT
- fedora 43: libunwind-devel 1.8.3-4.fc43 Β· MIT
- fedora 43: libunwind-devel 1.8.3-4.fc43 Β· MIT
- fedora 44: libunwind-devel 1.8.3-1.fc44 Β· MIT
- fedora 44: libunwind-devel 1.8.3-1.fc44 Β· MIT
- fedora 44: libunwind-devel 1.8.3-4.fc44 Β· MIT
- fedora 44: libunwind-devel 1.8.3-4.fc44 Β· MIT
- nixpkgs unstable: libunwind 1.8.3-devman
- opensuse-leap 16.0: libunwind-devel 1.8.1-160000.2.2 Β· MIT
- opensuse-leap 16.0: libunwind-devel 1.8.1-160000.2.2 Β· MIT
- opensuse-leap 16.0: libunwind-devel 1.8.1-160000.2.2 Β· MIT
- opensuse-leap 16.0: libunwind-devel 1.8.1-160000.2.2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms