Lines Matching defs:ep
148 fill_eproc(proc_t p, struct eproc *ep);
152 fill_user_eproc(proc_t p, struct user_eproc *ep);
1282 fill_eproc(proc_t p, struct eproc *ep)
1292 ep->e_paddr = p;
1295 ep->e_sess = sessp;
1296 ep->e_pgid = p->p_pgrpid;
1297 ep->e_jobc = pg->pg_jobc;
1299 ep->e_flag = EPROC_CTTY;
1301 ep->e_sess = (struct session *)0;
1302 ep->e_pgid = 0;
1303 ep->e_jobc = 0;
1307 ep->e_lcid = p->p_lctx->lc_id;
1309 ep->e_lcid = 0;
1312 ep->e_ppid = p->p_ppid;
1314 bzero(&ep->e_pcred, sizeof(struct _pcred));
1319 ep->e_pcred.p_ruid = my_cred->cr_ruid;
1320 ep->e_pcred.p_svuid = my_cred->cr_svuid;
1321 ep->e_pcred.p_rgid = my_cred->cr_rgid;
1322 ep->e_pcred.p_svgid = my_cred->cr_svgid;
1324 ep->e_ucred.cr_ref = my_cred->cr_ref;
1325 ep->e_ucred.cr_uid = kauth_cred_getuid(my_cred);
1326 ep->e_ucred.cr_ngroups = my_cred->cr_ngroups;
1327 bcopy(my_cred->cr_groups, ep->e_ucred.cr_groups, NGROUPS*sizeof(gid_t));
1332 ep->e_vm.vm_tsize = 0;
1333 ep->e_vm.vm_dsize = 0;
1334 ep->e_vm.vm_ssize = 0;
1336 ep->e_vm.vm_rssize = 0;
1340 ep->e_tdev = tp->t_dev;
1341 ep->e_tpgid = sessp->s_ttypgrpid;
1342 ep->e_tsess = tp->t_session;
1344 ep->e_tdev = NODEV;
1347 ep->e_flag |= EPROC_SLEADER;
1348 bzero(&ep->e_wmesg[0], WMESGLEN+1);
1349 ep->e_xsize = ep->e_xrssize = 0;
1350 ep->e_xccount = ep->e_xswrss = 0;
1361 fill_user_eproc(proc_t p, struct user_eproc *ep)
1371 ep->e_paddr = CAST_USER_ADDR_T(p);
1373 ep->e_sess = CAST_USER_ADDR_T(sessp);
1374 ep->e_pgid = p->p_pgrpid;
1375 ep->e_jobc = pg->pg_jobc;
1378 ep->e_flag = EPROC_CTTY;
1381 ep->e_sess = USER_ADDR_NULL;
1382 ep->e_pgid = 0;
1383 ep->e_jobc = 0;
1387 ep->e_lcid = p->p_lctx->lc_id;
1389 ep->e_lcid = 0;
1392 ep->e_ppid = p->p_ppid;
1394 bzero(&ep->e_pcred, sizeof(ep->e_pcred));
1399 ep->e_pcred.p_ruid = my_cred->cr_ruid;
1400 ep->e_pcred.p_svuid = my_cred->cr_svuid;
1401 ep->e_pcred.p_rgid = my_cred->cr_rgid;
1402 ep->e_pcred.p_svgid = my_cred->cr_svgid;
1405 ep->e_ucred.cr_ref = my_cred->cr_ref;
1406 ep->e_ucred.cr_uid = kauth_cred_getuid(my_cred);
1407 ep->e_ucred.cr_ngroups = my_cred->cr_ngroups;
1408 bcopy(my_cred->cr_groups, ep->e_ucred.cr_groups, NGROUPS*sizeof(gid_t));
1413 ep->e_vm.vm_tsize = 0;
1414 ep->e_vm.vm_dsize = 0;
1415 ep->e_vm.vm_ssize = 0;
1417 ep->e_vm.vm_rssize = 0;
1421 ep->e_tdev = tp->t_dev;
1422 ep->e_tpgid = sessp->s_ttypgrpid;
1423 ep->e_tsess = CAST_USER_ADDR_T(tp->t_session);
1425 ep->e_tdev = NODEV;
1428 ep->e_flag |= EPROC_SLEADER;
1429 bzero(&ep->e_wmesg[0], WMESGLEN+1);
1430 ep->e_xsize = ep->e_xrssize = 0;
1431 ep->e_xccount = ep->e_xswrss = 0;