Lines Matching refs:flags
76 static int bpf_do_map(const char *file, uint32_t flags, uint32_t key, in bpf_do_map() argument
81 if (flags & BPF_F_PIN) { in bpf_do_map()
95 if ((flags & BPF_F_KEY_VAL) == BPF_F_KEY_VAL) { in bpf_do_map()
100 } else if (flags & BPF_F_KEY) { in bpf_do_map()
110 static int bpf_do_prog(const char *file, uint32_t flags, const char *object) in bpf_do_prog() argument
114 if (flags & BPF_F_PIN) { in bpf_do_prog()
142 uint32_t key = 0, value = 0, flags = 0; in main() local
152 flags |= BPF_F_PIN; in main()
155 flags |= BPF_F_GET; in main()
163 flags |= BPF_F_KEY; in main()
167 flags |= BPF_F_VAL; in main()
181 if (!(flags & BPF_F_PIN_GET) || !file) in main()
186 return bpf_do_map(file, flags, key, value); in main()
188 return bpf_do_prog(file, flags, object); in main()