I want to check if a virtual address can be dereferenced without raising segmentation fault. the virtual address I am talking about is not just untrustworthy user space address. I want to check the kernel virtual address as well.
In x86 Linux kernel, __virt_addr_valid() function can be used to check if the virtual address has valid mapping.
Is there any equivalent in ARM linux kernel??
Thank you in advance.