Lines Matching refs:rtadmin
222 rtadmin_t rtadmin;
229 if (copyin(uaddr, &rtadmin, sizeof (rtadmin_t)))
234 /* rtadmin struct from ILP32 callers */
238 rtadmin.rt_dpents =
240 rtadmin.rt_ndpents = rtadmin32.rt_ndpents;
241 rtadmin.rt_cmd = rtadmin32.rt_cmd;
247 switch (rtadmin.rt_cmd) {
250 rtadmin.rt_ndpents = rt_maxpri + 1;
253 if (copyout(&rtadmin, uaddr, sizeof (rtadmin_t)))
258 /* return rtadmin struct to ILP32 callers */
261 (caddr32_t)(uintptr_t)rtadmin.rt_dpents;
262 rtadmin32.rt_ndpents = rtadmin.rt_ndpents;
263 rtadmin32.rt_cmd = rtadmin.rt_cmd;
272 userdpsz = MIN(rtadmin.rt_ndpents * sizeof (rtdpent_t),
274 if (copyout(rt_dptbl, rtadmin.rt_dpents, userdpsz))
276 rtadmin.rt_ndpents = userdpsz / sizeof (rtdpent_t);
279 if (copyout(&rtadmin, uaddr, sizeof (rtadmin_t)))
284 /* return rtadmin struct to ILP32 callers */
287 (caddr32_t)(uintptr_t)rtadmin.rt_dpents;
288 rtadmin32.rt_ndpents = rtadmin.rt_ndpents;
289 rtadmin32.rt_cmd = rtadmin.rt_cmd;
304 if (rtadmin.rt_ndpents * sizeof (rtdpent_t) != rtdpsz)
313 if (copyin(rtadmin.rt_dpents, tmpdpp, rtdpsz)) {
317 for (i = 0; i < rtadmin.rt_ndpents; i++) {
335 for (i = 0; i < rtadmin.rt_ndpents; i++)