Lines Matching defs:ri_v1
126 static void rusage_info_v2_to_v1(struct rusage_info_v1 *ri_v1, struct rusage_info_v2 *ri_v2);
1490 rusage_info_v2_to_v1(struct rusage_info_v1 *ri_v1, struct rusage_info_v2 *ri_v2)
1492 memcpy(&ri_v1->ri_uuid[0], &ri_v2->ri_uuid[0], sizeof(ri_v1->ri_uuid));
1493 ri_v1->ri_user_time = ri_v2->ri_user_time;
1494 ri_v1->ri_system_time = ri_v2->ri_system_time;
1495 ri_v1->ri_pkg_idle_wkups = ri_v2->ri_pkg_idle_wkups;
1496 ri_v1->ri_interrupt_wkups = ri_v2->ri_interrupt_wkups;
1497 ri_v1->ri_pageins = ri_v2->ri_pageins;
1498 ri_v1->ri_wired_size = ri_v2->ri_wired_size;
1499 ri_v1->ri_resident_size = ri_v2->ri_resident_size;
1500 ri_v1->ri_phys_footprint = ri_v2->ri_phys_footprint;
1501 ri_v1->ri_proc_start_abstime = ri_v2->ri_proc_start_abstime;
1502 ri_v1->ri_proc_exit_abstime = ri_v2->ri_proc_exit_abstime;
1503 ri_v1->ri_child_user_time = ri_v2->ri_child_user_time;
1504 ri_v1->ri_child_system_time = ri_v2->ri_child_system_time;
1505 ri_v1->ri_child_pkg_idle_wkups = ri_v2->ri_child_pkg_idle_wkups;
1506 ri_v1->ri_child_interrupt_wkups = ri_v2->ri_child_interrupt_wkups;
1507 ri_v1->ri_child_pageins = ri_v2->ri_child_pageins;
1508 ri_v1->ri_child_elapsed_abstime = ri_v2->ri_child_elapsed_abstime;
1515 struct rusage_info_v1 ri_v1;
1544 rusage_info_v2_to_v1(&ri_v1, &ri_v2);
1546 rusage_info_v2_to_v1(&ri_v1, &p->p_ru->ri);
1548 error = copyout(&ri_v1, buffer, sizeof (ri_v1));