Home
last modified time | relevance | path

Searched refs:ures (Results 1 – 2 of 2) sorted by relevance

/freebsd/lib/libdevinfo/
H A Ddevinfo.c271 struct u_resource ures; in devinfo_init_resources() local
345 rlen = sizeof(ures); in devinfo_init_resources()
346 error = sysctl(oid, oidlen, &ures, &rlen, NULL, 0); in devinfo_init_resources()
357 dr->dr_res.dr_handle = ures.r_handle; in devinfo_init_resources()
358 dr->dr_res.dr_rman = ures.r_parent; in devinfo_init_resources()
359 dr->dr_res.dr_device = ures.r_device; in devinfo_init_resources()
360 dr->dr_res.dr_start = ures.r_start; in devinfo_init_resources()
361 dr->dr_res.dr_size = ures.r_size; in devinfo_init_resources()
/freebsd/sys/kern/
H A Dsubr_rman.c957 struct u_resource ures; in sysctl_rman() local
1016 bzero(&ures, sizeof(ures)); in sysctl_rman()
1017 ures.r_handle = (uintptr_t)res; in sysctl_rman()
1018 ures.r_parent = (uintptr_t)res->r_rm; in sysctl_rman()
1019 ures.r_device = (uintptr_t)res->r_dev; in sysctl_rman()
1022 snprintf(ures.r_devname, RM_TEXTLEN, in sysctl_rman()
1027 strlcpy(ures.r_devname, "nomatch", in sysctl_rman()
1031 ures.r_devname[0] = '\0'; in sysctl_rman()
1033 ures.r_start = res->r_start; in sysctl_rman()
1034 ures.r_size = res->r_end - res->r_start + 1; in sysctl_rman()
[all …]