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

Function vfs_opterror

freebsd/kern/vfs_mount.c:1929–1943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1927}
1928
1929void
1930vfs_opterror(struct vfsoptlist *opts, const char *fmt, ...)
1931{
1932 va_list ap;
1933 int error, len;
1934 char *errmsg;
1935
1936 error = vfs_getopt(opts, "errmsg", (void **)&errmsg, &len);
1937 if (error || errmsg == NULL || len <= 0)
1938 return;
1939
1940 va_start(ap, fmt);
1941 vsnprintf(errmsg, (size_t)len, fmt, ap);
1942 va_end(ap);
1943}
1944
1945/*
1946 * ---------------------------------------------------------------------

Callers 2

kern_jail_setFunction · 0.85
kern_jail_getFunction · 0.85

Calls 2

vfs_getoptFunction · 0.85
vsnprintfFunction · 0.85

Tested by

no test coverage detected