Function esp_idf_hal::sys::esp_vfs_register_fd
source · pub unsafe extern "C" fn esp_vfs_register_fd(
vfs_id: i32,
fd: *mut i32
) -> i32
Expand description
Special function for registering another file descriptor for a VFS registered by esp_vfs_register_with_id.
@param vfs_id VFS identificator returned by esp_vfs_register_with_id. @param fd The registered file descriptor will be written to this address.
@return ESP_OK if the registration is successful, ESP_ERR_NO_MEM if too many file descriptors are registered, ESP_ERR_INVALID_ARG if the arguments are incorrect.