Function esp_idf_sys::esp_vfs_register_fd_range
source ยท pub unsafe extern "C" fn esp_vfs_register_fd_range(
vfs: *const esp_vfs_t,
ctx: *mut c_void,
min_fd: c_int,
max_fd: c_int,
) -> esp_err_t
Expand description
Special case function for registering a VFS that uses a method other than open() to open new file descriptors from the interval <min_fd; max_fd).
This is a special-purpose function intended for registering LWIP sockets to VFS.
@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 min_fd The smallest file descriptor this VFS will use. @param max_fd Upper boundary for file descriptors this VFS will use (the biggest file descriptor plus one).
@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.