pub unsafe extern "C" fn seccomp_export_bpf_mem(
ctx: const_scmp_filter_ctx,
buf: *mut c_void,
len: *mut usize,
) -> c_intExpand description
Generate seccomp Berkeley Packet Filter (BPF) code and export it to a buffer
ctx: the filter contextbuf: the destination bufferlen: on input the length of the buffer, on output the number of bytes in the program
This function generates seccomp Berkeley Packer Filter (BPF) code and writes it to the given buffer. Returns zero on success, negative values on failure.