[][src]Function seccomp_sys::seccomp_init

pub unsafe extern "C" fn seccomp_init(def_action: u32) -> *mut scmp_filter_ctx

Initialize the filter state

@param def_action the default filter action

This function initializes the internal seccomp filter state and should be called before any other functions in this library to ensure the filter state is initialized. Returns a filter context on success, NULL on failure.