* @brief Find a filesystem type by name * * This function searches the global filesystem type list for a filesystem * matching the given name. It returns a pointer to the pointer that holds * the matching filesystem type (or the end-of-list pointer if not found). * * @param[in] name The name of the filesystem type to find * @return struct dfs_filesystem_type** Pointer to the pointer contain
| 47 | * the matching filesystem type, or the end-of-list pointer if not found |
| 48 | */ |
| 49 | static struct dfs_filesystem_type **_find_filesystem(const char *name) |
| 50 | { |
| 51 | struct dfs_filesystem_type **type; |
| 52 | for (type = &file_systems; *type; type = &(*type)->next) |
| 53 | { |
| 54 | if (strcmp((*type)->fs_ops->name, name) == 0) |
| 55 | break; |
| 56 | } |
| 57 | |
| 58 | return type; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * @brief Get the list of registered filesystem types |
no outgoing calls
no test coverage detected