This isn't new code, this is basically copied verbatim from //system/bpf/libbpf_android/include/bpf/BpfUtils.h Test: atest BpfMapTest, TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I80523c9ee0c1e4431f3192eb409ad68c737390a6