| Date | Wed, 27 May 2015 18:55:07 -0700 | From | Alexei Starovoitov <> | Subject | Re: [RFC PATCH v4 15/29] bpf tools: Add bpf.c/h for common bpf operations |
| |
On Wed, May 27, 2015 at 05:19:50AM +0000, Wang Nan wrote: > This patch introduces bpf.c and bpf.h, which hold common functions > issuing bpf syscall. The goal of these two files is to hide syscall > completly from user. Note that bpf.c and bpf.h only deal with kernel > interface. Things like structure of 'map' section in the ELF object is > not cared by of bpf.[ch]. > > We first introduce bpf_create_map(). > > Note that, since functions in bpf.[ch] are wrapper of sys_bpf, they > don't use OO style naming. > > Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
|