Browse Source Download (without any required ccan dependencies)
ptr_valid
test whether a pointer is safe to dereference.
This little helper tells you if an address is mapped; it doesn't tell you if it's read-only (or execute only).
BSD-MIT