MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sys_bpf

Function sys_bpf

dpdk/drivers/net/tap/tap_bpf_api.c:89–93  ·  view source on GitHub ↗

* Call BPF system call * * @param[in] cmd * BPF command for program loading, map creation, map entry update, etc * * @param[in] attr * System call attributes relevant to system call command * * @param[in] size * size of attr parameter * * @return * -1 if BPF system call failed, 0 otherwise */

Source from the content-addressed store, hash-verified

87 * -1 if BPF system call failed, 0 otherwise
88 */
89static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr,
90 unsigned int size)
91{
92 return syscall(__NR_bpf, cmd, attr, size);
93}
94
95/**
96 * Load BPF instructions to kernel

Callers 3

bpf_loadFunction · 0.85

Calls 1

syscallFunction · 0.50

Tested by

no test coverage detected