MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _find_filesystem

Function _find_filesystem

components/dfs/dfs_v2/src/dfs_fs.c:49–59  ·  view source on GitHub ↗

* @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

Source from the content-addressed store, hash-verified

47 * the matching filesystem type, or the end-of-list pointer if not found
48 */
49static 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

Callers 3

dfs_registerFunction · 0.85
dfs_mountFunction · 0.85
dfs_mkfsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected