Lines Matching refs:name
49 static struct file_system_type **find_filesystem(const char *name, unsigned len) in find_filesystem() argument
53 if (strncmp((*p)->name, name, len) == 0 && in find_filesystem()
54 !(*p)->name[len]) in find_filesystem()
80 BUG_ON(strchr(fs->name, '.')); in register_filesystem()
84 p = find_filesystem(fs->name, strlen(fs->name)); in register_filesystem()
134 struct filename *name; in fs_index() local
137 name = getname(__name); in fs_index()
138 err = PTR_ERR(name); in fs_index()
139 if (IS_ERR(name)) in fs_index()
145 if (strcmp(tmp->name, name->name) == 0) { in fs_index()
151 putname(name); in fs_index()
169 len = strlen(tmp->name) + 1; in fs_name()
170 res = copy_to_user(buf, tmp->name, len) ? -EFAULT : 0; in fs_name()
221 tmp->name); in get_filesystem_list()
238 tmp->name); in filesystems_proc_show()
253 static struct file_system_type *__get_fs_type(const char *name, int len) in __get_fs_type() argument
258 fs = *(find_filesystem(name, len)); in __get_fs_type()
265 struct file_system_type *get_fs_type(const char *name) in get_fs_type() argument
268 const char *dot = strchr(name, '.'); in get_fs_type()
269 int len = dot ? dot - name : strlen(name); in get_fs_type()
271 fs = __get_fs_type(name, len); in get_fs_type()
272 if (!fs && (request_module("fs-%.*s", len, name) == 0)) { in get_fs_type()
273 fs = __get_fs_type(name, len); in get_fs_type()
276 len, name); in get_fs_type()