aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorKefeng Wang <[email protected]>2022-06-07 20:50:25 +0800
committerWill Deacon <[email protected]>2022-06-27 12:22:31 +0100
commit18e780b4e6ab89a3a10f46d151971863562c1c91 (patch)
treeaf78abe8a479005ef769c60ac3d772d4a6afc014 /tools/testing/selftests/bpf/prog_tests/autoload.c
parenta14fff1c0379d0422c5ca0084b0ab86ed7bedf3e (diff)
mm: ioremap: Add ioremap/iounmap_allowed()
Add special hook for architecture to verify addr, size or prot when ioremap() or iounmap(), which will make the generic ioremap more useful. ioremap_allowed() return a bool, - true means continue to remap - false means skip remap and return directly iounmap_allowed() return a bool, - true means continue to vunmap - false code means skip vunmap and return directly Meanwhile, only vunmap the address when it is in vmalloc area as the generic ioremap only returns vmalloc addresses. Acked-by: Andrew Morton <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Baoquan He <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions