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

Function vfs_setopt

freebsd/kern/vfs_mount.c:2154–2173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2152}
2153
2154int
2155vfs_setopt(struct vfsoptlist *opts, const char *name, void *value, int len)
2156{
2157 struct vfsopt *opt;
2158
2159 TAILQ_FOREACH(opt, opts, link) {
2160 if (strcmp(name, opt->name) != 0)
2161 continue;
2162 opt->seen = 1;
2163 if (opt->value == NULL)
2164 opt->len = len;
2165 else {
2166 if (opt->len != len)
2167 return (EINVAL);
2168 bcopy(value, opt->value, len);
2169 }
2170 return (0);
2171 }
2172 return (ENOENT);
2173}
2174
2175int
2176vfs_setopt_part(struct vfsoptlist *opts, const char *name, void *value, int len)

Callers 4

shm_prison_getFunction · 0.85
kern_jail_getFunction · 0.85
sem_prison_getFunction · 0.85
msg_prison_getFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected