Type Alias tikv_jemalloc_sys::extent_hooks_t

source ·
pub type extent_hooks_t = extent_hooks_s;
Expand description

Extent lifetime management functions.

Aliased Type§

struct extent_hooks_t {
    pub alloc: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: *mut bool, _: *mut bool, _: u32) -> *mut c_void>,
    pub dalloc: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: bool, _: u32) -> bool>,
    pub destroy: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: bool, _: u32)>,
    pub commit: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>,
    pub decommit: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>,
    pub purge_lazy: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>,
    pub purge_forced: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>,
    pub split: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: bool, _: u32) -> bool>,
    pub merge: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: *mut c_void, _: usize, _: bool, _: u32) -> bool>,
}

Fields§

§alloc: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: *mut bool, _: *mut bool, _: u32) -> *mut c_void>§dalloc: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: bool, _: u32) -> bool>§destroy: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: bool, _: u32)>§commit: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>§decommit: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>§purge_lazy: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>§purge_forced: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: u32) -> bool>§split: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: usize, _: usize, _: bool, _: u32) -> bool>§merge: Option<unsafe extern "C" fn(_: *mut extent_hooks_s, _: *mut c_void, _: usize, _: *mut c_void, _: usize, _: bool, _: u32) -> bool>