[][src]Function openthread_sys::otInstanceInit

pub unsafe extern "C" fn otInstanceInit(
    aInstanceBuffer: *mut c_void,
    aInstanceBufferSize: *mut size_t
) -> *mut otInstance

This function initializes the OpenThread library.

This function initializes OpenThread and prepares it for subsequent OpenThread API calls. This function must be called before any other calls to OpenThread.

This function is available and can only be used when support for multiple OpenThread instances is enabled.

@param[in] aInstanceBuffer The buffer for OpenThread to use for allocating the otInstance structure. @param[inout] aInstanceBufferSize On input, the size of aInstanceBuffer. On output, if not enough space for otInstance, the number of bytes required for otInstance.

@returns A pointer to the new OpenThread instance.

@sa otInstanceFinalize