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

Function resource_string_value

freebsd/kern/subr_hints.c:383–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383int
384resource_string_value(const char *name, int unit, const char *resname,
385 const char **result)
386{
387 int error;
388 const char *str;
389 int line;
390
391 line = 0;
392 error = resource_find(&line, NULL, name, &unit, resname, NULL,
393 NULL, NULL, NULL, NULL, NULL, &str);
394 if (error)
395 return error;
396 *result = str;
397 return 0;
398}
399
400/*
401 * This is a bit nasty, but allows us to not modify the env strings.

Callers 3

are_attachFunction · 0.85
devclass_alloc_unitFunction · 0.85

Calls 1

resource_findFunction · 0.70

Tested by

no test coverage detected