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

Function ddb_display_bitset

freebsd/kern/kern_cpuset.c:2387–2403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2385#ifdef DDB
2386
2387static void
2388ddb_display_bitset(const struct bitset *set, int size)
2389{
2390 int bit, once;
2391
2392 for (once = 0, bit = 0; bit < size; bit++) {
2393 if (CPU_ISSET(bit, set)) {
2394 if (once == 0) {
2395 db_printf("%d", bit);
2396 once = 1;
2397 } else
2398 db_printf(",%d", bit);
2399 }
2400 }
2401 if (once == 0)
2402 db_printf("<none>");
2403}
2404
2405void
2406ddb_display_cpuset(const cpuset_t *set)

Callers 2

ddb_display_cpusetFunction · 0.85
ddb_display_domainsetFunction · 0.85

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected