Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ofw/ofw_fdt.c
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
sysctl_register_fdt_oid(void *arg) | sysctl_register_fdt_oid(void *arg) | ||||
{ | { | ||||
/* If there is no FDT registered, skip adding the sysctl */ | /* If there is no FDT registered, skip adding the sysctl */ | ||||
if (fdtp == NULL) | if (fdtp == NULL) | ||||
return; | return; | ||||
SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_fdt), OID_AUTO, "dtb", | SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_fdt), OID_AUTO, "dtb", | ||||
CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_NEEDGIANT, NULL, 0, | CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, 0, | ||||
sysctl_handle_dtb, "", "Device Tree Blob"); | sysctl_handle_dtb, "", "Device Tree Blob"); | ||||
kaktus: MPSAFE | |||||
} | } | ||||
SYSINIT(dtb_oid, SI_SUB_KMEM, SI_ORDER_ANY, sysctl_register_fdt_oid, NULL); | SYSINIT(dtb_oid, SI_SUB_KMEM, SI_ORDER_ANY, sysctl_register_fdt_oid, NULL); | ||||
static int | static int | ||||
ofw_fdt_init(ofw_t ofw, void *data) | ofw_fdt_init(ofw_t ofw, void *data) | ||||
{ | { | ||||
int err; | int err; | ||||
▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines |
MPSAFE