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

Function resource_long_value

freebsd/kern/subr_hints.c:359–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359int
360resource_long_value(const char *name, int unit, const char *resname,
361 long *result)
362{
363 int error;
364 const char *str;
365 char *op;
366 unsigned long val;
367 int line;
368
369 line = 0;
370 error = resource_find(&line, NULL, name, &unit, resname, NULL,
371 NULL, NULL, NULL, NULL, NULL, &str);
372 if (error)
373 return error;
374 if (*str == '\0')
375 return EFTYPE;
376 val = strtoul(str, &op, 0);
377 if (*op != '\0')
378 return EFTYPE;
379 *result = val;
380 return 0;
381}
382
383int
384resource_string_value(const char *name, int unit, const char *resname,

Callers 15

apb_hinted_childFunction · 0.85
ar71xx_pci_slot_fixupFunction · 0.85
ar724x_pci_slot_fixupFunction · 0.85
qca953x_chip_init_gmacFunction · 0.85
qca955x_chip_init_gmacFunction · 0.85
arge_fetch_pll_configFunction · 0.85
arge_attachFunction · 0.85
ar934x_chip_init_gmacFunction · 0.85
apb_hinted_childFunction · 0.85
nexus_hinted_childFunction · 0.85

Calls 2

strtoulFunction · 0.85
resource_findFunction · 0.70

Tested by

no test coverage detected