MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vfs_byname_locked

Function vfs_byname_locked

freebsd/kern/vfs_init.c:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 */
112
113static struct vfsconf *
114vfs_byname_locked(const char *name)
115{
116 struct vfsconf *vfsp;
117
118 sx_assert(&vfsconf_sx, SA_LOCKED);
119 if (!strcmp(name, "ffs"))
120 name = "ufs";
121 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) {
122 if (!strcmp(name, vfsp->vfc_name))
123 return (vfsp);
124 }
125 return (NULL);
126}
127
128struct vfsconf *
129vfs_byname(const char *name)

Callers 3

vfs_bynameFunction · 0.85
vfs_registerFunction · 0.85
vfs_unregisterFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected