[][src]Function tikv_jemalloc_ctl::raw::write_mib

pub unsafe fn write_mib<T>(mib: &[usize], value: T) -> Result<()>

Uses the MIB mib as key to the MALLCTL NAMESPACE and writes its value.

The name_to_mib API translates a string of the key (e.g. arenas.nbins) to a mib (Management Information Base).

Safety

This function is unsafe because it is possible to use it to construct an invalid T, for example, by passing T=u8 for a key expecting bool. The sizes of bool and u8 match, but bool cannot represent all values that u8 can.