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

Function vfs_flagopt

freebsd/kern/vfs_mount.c:2110–2127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2108}
2109
2110int
2111vfs_flagopt(struct vfsoptlist *opts, const char *name, uint64_t *w,
2112 uint64_t val)
2113{
2114 struct vfsopt *opt;
2115
2116 TAILQ_FOREACH(opt, opts, link) {
2117 if (strcmp(name, opt->name) == 0) {
2118 opt->seen = 1;
2119 if (w != NULL)
2120 *w |= val;
2121 return (1);
2122 }
2123 }
2124 if (w != NULL)
2125 *w &= ~val;
2126 return (0);
2127}
2128
2129int
2130vfs_scanopt(struct vfsoptlist *opts, const char *name, const char *fmt, ...)

Callers 4

shm_prison_setFunction · 0.85
kern_jail_setFunction · 0.85
sem_prison_setFunction · 0.85
msg_prison_setFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected