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

Function resource_disabled

freebsd/kern/subr_hints.c:480–489  ·  view source on GitHub ↗

* Check to see if a device is disabled via a disabled hint. */

Source from the content-addressed store, hash-verified

478 * Check to see if a device is disabled via a disabled hint.
479 */
480int
481resource_disabled(const char *name, int unit)
482{
483 int error, value;
484
485 error = resource_int_value(name, unit, "disabled", &value);
486 if (error)
487 return (0);
488 return (value);
489}
490
491/*
492 * Clear a value associated with a device by removing it from

Callers 15

acpi_find_tableFunction · 0.85
acpi_find_tableFunction · 0.85
acpi_find_tableFunction · 0.85
device_attachFunction · 0.85
devctl2_ioctlFunction · 0.85
elcr_probeFunction · 0.85
orm_identifyFunction · 0.85
assign_cpu_idsFunction · 0.85
apic_initFunction · 0.85
ram_identifyFunction · 0.85
intel_hwpstate_identifyFunction · 0.85
est_probeFunction · 0.85

Calls 1

resource_int_valueFunction · 0.85

Tested by

no test coverage detected