Lines Matching defs:rtadmin
223 rtadmin_t rtadmin;
230 if (copyin(uaddr, &rtadmin, sizeof (rtadmin_t)))
235 /* rtadmin struct from ILP32 callers */
239 rtadmin.rt_dpents =
241 rtadmin.rt_ndpents = rtadmin32.rt_ndpents;
242 rtadmin.rt_cmd = rtadmin32.rt_cmd;
248 switch (rtadmin.rt_cmd) {
251 rtadmin.rt_ndpents = rt_maxpri + 1;
254 if (copyout(&rtadmin, uaddr, sizeof (rtadmin_t)))
259 /* return rtadmin struct to ILP32 callers */
262 (caddr32_t)(uintptr_t)rtadmin.rt_dpents;
263 rtadmin32.rt_ndpents = rtadmin.rt_ndpents;
264 rtadmin32.rt_cmd = rtadmin.rt_cmd;
273 userdpsz = MIN(rtadmin.rt_ndpents * sizeof (rtdpent_t),
275 if (copyout(rt_dptbl, rtadmin.rt_dpents, userdpsz))
277 rtadmin.rt_ndpents = userdpsz / sizeof (rtdpent_t);
280 if (copyout(&rtadmin, uaddr, sizeof (rtadmin_t)))
285 /* return rtadmin struct to ILP32 callers */
288 (caddr32_t)(uintptr_t)rtadmin.rt_dpents;
289 rtadmin32.rt_ndpents = rtadmin.rt_ndpents;
290 rtadmin32.rt_cmd = rtadmin.rt_cmd;
305 if (rtadmin.rt_ndpents * sizeof (rtdpent_t) != rtdpsz)
314 if (copyin(rtadmin.rt_dpents, tmpdpp, rtdpsz)) {
318 for (i = 0; i < rtadmin.rt_ndpents; i++) {
336 for (i = 0; i < rtadmin.rt_ndpents; i++)