Lines Matching refs:crp

194     int anchor, cred_t *crp, uint_t anchor_zoneid)  in push_mod()  argument
215 if ((error = qattach(qp, devp, 0, crp, fp, B_FALSE)) != 0) in push_mod()
236 stropen(vnode_t *vp, dev_t *devp, int flag, cred_t *crp) in stropen() argument
349 if ((error = qreopen(_RD(qp), devp, flag, crp)) != 0) in stropen()
442 if ((error = qattach(qp, devp, flag, crp, NULL, B_FALSE)) != 0) { in stropen()
473 if (push_mod(qp, &dummydev, stp, DRMODNAME, 0, crp, 0) != 0) in stropen()
500 zoneid = crgetzoneid(crp); in stropen()
503 dlap.dap_aplist[s], dlap.dap_anchor, crp, in stropen()
530 zoneid = crgetzoneid(crp); in stropen()
537 zoneid = crgetzoneid(crp); in stropen()
540 anchor, crp, zoneid); in stropen()
611 strclose(struct vnode *vp, int flag, cred_t *crp) in strclose() argument
686 ns = netstack_find_by_cred(crp); in strclose()
691 (void) munlinkall(stp, LINKCLOSE|LINKNORMAL, crp, &rval, ss); in strclose()
733 qdetach(_RD(rmq), 1, flag, crp, B_FALSE); in strclose()
1147 strread(struct vnode *vp, struct uio *uiop, cred_t *crp) in strread() argument
1222 vp, uiop, crp); in strread()
1227 vp, uiop, crp); in strread()
1235 "strread awakes:%p, %p, %p", vp, uiop, crp); in strread()
2719 strwrite(struct vnode *vp, struct uio *uiop, cred_t *crp) in strwrite() argument
2721 return (strwrite_common(vp, uiop, crp, 0)); in strwrite()
2726 strwrite_common(struct vnode *vp, struct uio *uiop, cred_t *crp, int wflag) in strwrite_common() argument
3191 cred_t *crp, int *rvalp) in strioctl() argument
3349 K_TO_K, crp, rvalp)); in strioctl()
3358 copyflag, crp, rvalp)); in strioctl()
3366 copyflag, crp, rvalp)); in strioctl()
3372 copyflag, crp, rvalp)); in strioctl()
3378 copyflag, crp, rvalp)); in strioctl()
3382 secpolicy_sti(crp) != 0) { in strioctl()
3388 secpolicy_sti(crp) != 0) { in strioctl()
3399 copyflag, crp, rvalp)); in strioctl()
3405 copyflag, crp, rvalp)); in strioctl()
3411 copyflag, crp, rvalp)); in strioctl()
3427 copyflag, crp, rvalp)); in strioctl()
3434 copyflag, crp, rvalp)); in strioctl()
3441 copyflag, crp, rvalp)); in strioctl()
3448 copyflag, crp, rvalp)); in strioctl()
3454 copyflag, crp, rvalp)); in strioctl()
3461 copyflag, crp, rvalp)); in strioctl()
3494 copyflag, crp, rvalp)); in strioctl()
3506 return (strdoioctl(stp, &strioc, flag, copyflag, crp, rvalp)); in strioctl()
3558 error = strdoioctl(stp, &strioc, flag, copyflag, crp, rvalp); in strioctl()
3591 if ((error = strdocmd(stp, scp, crp)) == 0) { in strioctl()
3811 if ((error = qattach(rdq, &dummydev, 0, crp, fp, in strioctl()
3874 if (secpolicy_ip_config(crp, B_TRUE) != 0 || in strioctl()
3875 (stp->sd_anchorzone != crgetzoneid(crp))) { in strioctl()
3886 if (stp->sd_anchorzone != crgetzoneid(crp)) in strioctl()
3889 return (secpolicy_ip_config(crp, B_FALSE)); in strioctl()
3900 qdetach(_RD(q), 1, flag, crp, B_FALSE); in strioctl()
3976 ns = netstack_find_by_cred(crp); in strioctl()
4033 if ((error = secpolicy_net_config(crp, B_FALSE)) != 0) in strioctl()
4036 stp->sd_anchorzone != crgetzoneid(crp)) in strioctl()
4091 stp->sd_anchorzone != crgetzoneid(crp)) { in strioctl()
4115 if ((error = qattach(_RD(tmp_wrq), &dummydev, 0, crp, in strioctl()
4199 if ((error = secpolicy_net_config(crp, B_FALSE)) != 0) in strioctl()
4202 stp->sd_anchorzone != crgetzoneid(crp)) in strioctl()
4244 stp->sd_anchorzone != crgetzoneid(crp)) { in strioctl()
4254 qdetach(_RD(q), 1, flag, crp, is_remove); in strioctl()
4322 stp->sd_anchorzone != crgetzoneid(crp)) { in strioctl()
4327 stp->sd_anchorzone = crgetzoneid(crp); in strioctl()
4353 return (mlink(vp, cmd, (int)arg, crp, rvalp, 0)); in strioctl()
4360 return (ldi_mlink_lh(vp, cmd, arg, crp, rvalp)); in strioctl()
4390 ns = netstack_find_by_cred(crp); in strioctl()
4396 error = munlinkall(stp, type, crp, rvalp, ss); in strioctl()
4406 error = munlink(stp, linkp, type, crp, rvalp, ss); in strioctl()
4444 (void) strdoioctl(stp, &strioc, flag, K_TO_K, crp, rvalp); in strioctl()
4478 (void) strdoioctl(stp, &strioc, flag, K_TO_K, crp, rvalp); in strioctl()
5289 error = do_sendfp(stp, fp, crp); in strioctl()
5868 cred_t *crp, in strdoioctl() argument
5901 crp, curproc->p_pid)) == NULL) in strdoioctl()
5911 crhold(crp); in strdoioctl()
5912 iocbp->ioc_cr = crp; in strdoioctl()
5933 if ((error = putiocd(bp, strioc->ic_dp, id, crp)) != 0) { in strdoioctl()
5935 crfree(crp); in strdoioctl()
5950 crfree(crp); in strdoioctl()
6015 crfree(crp); in strdoioctl()
6080 crfree(crp); in strdoioctl()
6153 crfree(crp); in strdoioctl()
6252 error = putiocd(bp, reqp->cq_addr, flag, crp); in strdoioctl()
6261 mblk_setcred(bp, crp, curproc->p_pid); in strdoioctl()
6275 crfree(crp); in strdoioctl()
6305 mblk_setcred(bp, crp, curproc->p_pid); in strdoioctl()
6319 crfree(crp); in strdoioctl()
6334 crfree(crp); in strdoioctl()
6345 strdocmd(struct stdata *stp, struct strcmd *scp, cred_t *crp) in strdocmd() argument
6360 if ((mp = allocb_cred(sizeof (struct cmdblk), crp, in strdocmd()
6364 crhold(crp); in strdocmd()
6367 cmdp->cb_cr = crp; in strdocmd()
6380 mp->b_cont = allocb_cred(sizeof (scp->sc_buf), crp, in strdocmd()
6464 crfree(crp); in strdocmd()
6470 crfree(crp); in strdocmd()