[LTP] [PATCH v2 2/5] bpf: Add map_array helper functions

Cyril Hrubis chrubis@suse.cz
Fri Apr 30 10:31:17 CEST 2021


Hi!
> +long bpf_map_array_get(const int map_fd,
> +		       const uint32_t *const array_indx,
> +		       uint64_t *const array_val)

Wouldn't the API be nicer if we passed just index value and returned the
map value? We do TBROK if something goes wrong anyways, so there is no
point in passing the return value from the bpf() syscall.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list