Function esp_idf_sys::esp_vfs_register_with_id
source · pub unsafe extern "C" fn esp_vfs_register_with_id(
vfs: *const esp_vfs_t,
ctx: *mut c_void,
vfs_id: *mut esp_vfs_id_t,
) -> esp_err_t
Expand description
Special case function for registering a VFS that uses a method other than open() to open new file descriptors. In comparison with esp_vfs_register_fd_range, this function doesn’t pre-registers an interval of file descriptors. File descriptors can be registered later, by using esp_vfs_register_fd.
@param vfs Pointer to esp_vfs_t. Meaning is the same as for esp_vfs_register(). @param ctx Pointer to context structure. Meaning is the same as for esp_vfs_register(). @param vfs_id Here will be written the VFS ID which can be passed to esp_vfs_register_fd for registering file descriptors.
@return ESP_OK if successful, ESP_ERR_NO_MEM if too many VFSes are registered, ESP_ERR_INVALID_ARG if the file descriptor boundaries are incorrect.