]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - tools/lib/bpf/libbpf.h
tools lib bpf: Use IS_ERR() reporting macros with bpf_map__get_def()
[mirror_ubuntu-bionic-kernel.git] / tools / lib / bpf / libbpf.h
index a51594c7b51865140f6e6b42c8d1400b951bea82..bad5bac58db4e62d0e99e09cc788ebbec75d035b 100644 (file)
@@ -181,12 +181,12 @@ bpf_map__next(struct bpf_map *map, struct bpf_object *obj);
             (pos) = bpf_map__next((pos), (obj)))
 
 int bpf_map__get_fd(struct bpf_map *map);
-int bpf_map__get_def(struct bpf_map *map, struct bpf_map_def *pdef);
-const char *bpf_map__get_name(struct bpf_map *map);
+const struct bpf_map_def *bpf_map__def(struct bpf_map *map);
+const char *bpf_map__name(struct bpf_map *map);
 
 typedef void (*bpf_map_clear_priv_t)(struct bpf_map *, void *);
 int bpf_map__set_private(struct bpf_map *map, void *priv,
                         bpf_map_clear_priv_t clear_priv);
-int bpf_map__get_private(struct bpf_map *map, void **ppriv);
+void *bpf_map__priv(struct bpf_map *map);
 
 #endif