Searched defs:crp (Results 1 - 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dpmap_prot.c219 xdr_rmtcallres(XDR *xdrs, struct p_rmtcallres *crp) argument
221 if (xdr_u_int(xdrs, (uint_t *)&crp->port) &&
222 xdr_u_int(xdrs, &crp->res.res_len))
223 return ((*(crp->xdr_res))(xdrs, crp->res.res_val));
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_helper_stream.c65 ip_helper_share_conn(queue_t *q, mblk_t *mp, cred_t *crp) argument
73 if (kcred != crp || msgdsize(mp->b_cont) != sizeof (void *)) {
/illumos-gate/usr/src/uts/common/io/
H A Dconnld.c150 connopen(queue_t *rqp, dev_t *devp, int flag, int sflag, cred_t *crp) argument
197 connclose(queue_t *q, int cflag, cred_t *crp) argument
H A Dpipemod.c49 pipeopen(queue_t *rqp, dev_t *devp, int flag, int sflag, cred_t *crp) argument
57 pipeclose(queue_t *q, int cflag, cred_t *crp) argument
H A Ddrcompat.c183 dropen(queue_t *q, dev_t *devp, int oflag, int sflag, cred_t *crp) argument
191 if (secpolicy_net_rawaccess(crp) != 0) {
210 drclose(queue_t *q, int cflag, cred_t *crp) argument
H A Dclone.c59 int clnopen(queue_t *rq, dev_t *devp, int flag, int sflag, cred_t *crp);
163 clnopen(queue_t *rq, dev_t *devp, int flag, int sflag, cred_t *crp) argument
227 error = secpolicy_spec_open(crp, vp, flag);
281 error = (*rq->q_qinfo->qi_qopen)(rq, &newdev, flag, CLONEOPEN, crp);
295 (*rq->q_qinfo->qi_qclose)(rq, flag, crp);
H A Ddedump.c221 dedumpopen(queue_t *q, dev_t *devp, int oflag, int sflag, cred_t *crp) argument
235 dedumpclose(queue_t *q, int flag, cred_t *crp) argument
H A Dpfmod.c169 pfopen(queue_t *rq, dev_t *dev, int oflag, int sflag, cred_t *crp) argument
H A Dttcompat.c186 ttcompatopen(queue_t *q, dev_t *devp, int oflag, int sflag, cred_t *crp) argument
198 secpolicy_excl_open(crp) != 0) {
295 ttcompatclose(queue_t *q, int flag, cred_t *crp) argument
H A Dbufmod.c201 sbopen(queue_t *rq, dev_t *dev, int oflag, int sflag, cred_t *crp) argument
H A Dlogindmux.c279 logdmuxopen(queue_t *q, dev_t *devp, int flag, int sflag, cred_t *crp) argument
334 logdmuxclose(queue_t *q, int flag, cred_t *crp) argument
/illumos-gate/usr/src/uts/common/os/
H A Dsession.c274 cred_t *crp; local
282 crhold(crp = p->p_cred);
290 sp->s_cred = crp;
/illumos-gate/usr/src/uts/common/fs/
H A Dpathname.c201 pn_getsymlink(vnode_t *vp, struct pathname *pnp, cred_t *crp) argument
215 if ((error = VOP_READLINK(vp, &auio, crp, NULL)) == 0) {
/illumos-gate/usr/src/uts/common/avs/ns/dsw/
H A Ddsw.c57 static int iiopen(dev_t *devp, int flag, int otyp, cred_t *crp);
58 static int iiclose(dev_t dev, int flag, int otyp, cred_t *crp);
60 static int iiioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp,
457 iiopen(dev_t *devp, int flag, int otyp, cred_t *crp) argument
461 error = drv_priv(crp);
470 iiclose(dev_t dev, int flag, int otyp, cred_t *crp) argument
489 iiioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) argument
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_disk.c128 nsc_uread(nsc_fd_t *fd, void *uiop, void *crp) argument
130 return (*fd->sf_aio->uread)(fd->sf_cd, uiop, crp, fd);
135 nsc_uwrite(nsc_fd_t *fd, void *uiop, void *crp) argument
140 return (*fd->sf_aio->uwrite)(fd->sf_cd, uiop, crp, fd);
169 _nsc_uread(dev_t dev, uio_t *uiop, cred_t *crp, nsc_fd_t *fd) argument
178 _nsc_uwrite(dev_t dev, uio_t *uiop, cred_t *crp, nsc_fd_t *fd) argument
457 cred_t *crp = NULL; local
483 crp = ddi_get_cred();
544 rc = (*iofn)(h->db_fd, &h->db_uio, crp);
H A Dnsctl.c477 nscopen(dev_t *devp, int flag, int otyp, cred_t *crp) argument
482 if (error = drv_priv(crp))
576 nscclose(dev_t dev, int flag, int otyp, cred_t *crp) argument
603 nscread(dev_t dev, uio_t *uiop, cred_t *crp) argument
621 rc = nsc_uread(fd, uiop, crp);
634 nscwrite(dev_t dev, uio_t *uiop, cred_t *crp) argument
652 rc = nsc_uwrite(fd, uiop, crp);
757 nscioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) argument
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cfgrom.c65 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; local
70 rw_init(&crp->cr_rwlock, NULL, RW_DRIVER, ibc);
79 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; local
83 rw_destroy(&crp->cr_rwlock);
91 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; local
95 rw_enter(&crp->cr_rwlock, RW_WRITER);
96 if (crp->cr_parsed) {
99 rw_exit(&crp->cr_rwlock);
170 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; local
212 rw_enter(&crp
301 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; local
354 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; local
447 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; local
[all...]
/illumos-gate/usr/src/uts/common/io/sbp2/
H A Dcfgrom.c81 sbp2_cfgrom_parse(sbp2_tgt_t *tp, sbp2_cfgrom_t *crp) argument
83 sbp2_cfgrom_ent_t *root_dir = &crp->cr_root;
84 sbp2_cfgrom_bib_t *bib = &crp->cr_bib;
108 sbp2_cfgrom_free(tp, crp);
364 sbp2_cfgrom_free(sbp2_tgt_t *tp, sbp2_cfgrom_t *crp) argument
366 sbp2_cfgrom_free_bib(tp, &crp->cr_bib);
367 sbp2_cfgrom_walk_free(&crp->cr_root);
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ah/
H A Dusb_ah.c200 usb_ah_open(queue_t *q, dev_t *devp, int oflag, int sflag, cred_t *crp) argument
320 usb_ah_close(register queue_t *q, int flag, cred_t *crp) argument
/illumos-gate/usr/src/uts/common/io/vuidmice/
H A Dvuidmice.c181 const int oflag, const int sflag, const cred_t *const crp)
226 vuidmice_close(queue_t *const qp, const int flag, const cred_t *const crp) argument
180 vuidmice_open(queue_t *const qp, const dev_t *const devp, const int oflag, const int sflag, const cred_t *const crp) argument
/illumos-gate/usr/src/uts/common/fs/namefs/
H A Dnamevfs.c203 nm_umountall(vnode_t *vp, cred_t *crp) argument
247 if ((error = dounmount(vfsp, 0, crp)) != 0)
273 nm_unmountall(vnode_t *vp, cred_t *crp) argument
284 error = nm_umountall(vp, crp);
306 nm_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *crp) argument
379 if (secpolicy_fs_mount(crp, filevp, vfsp) != 0) {
402 if (error = VOP_GETATTR(mvp, vattrp, 0, crp, NULL))
406 if (error = VOP_GETATTR(filevp, &filevattr, 0, crp, NULL))
412 if (error = secpolicy_vnode_owner(crp, vattrp->va_uid))
419 if (secpolicy_vnode_access2(crp, mv
555 nm_unmount(vfs_t *vfsp, int flag, cred_t *crp) argument
647 nm_sync(vfs_t *vfsp, short flag, cred_t *crp) argument
[all...]
H A Dnamevno.c77 nm_open(vnode_t **vpp, int flag, cred_t *crp, caller_context_t *ct) argument
95 if ((error = VOP_OPEN(&outfilevp, flag, crp, ct)) != 0) {
163 nm_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *crp, argument
171 error = VOP_CLOSE(nodep->nm_filevp, flag, count, offset, crp, ct);
173 (void) VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, ct);
192 nm_read(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *crp, argument
195 return (VOP_READ(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct));
199 nm_write(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *crp, argument
202 return (VOP_WRITE(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct));
218 nm_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *crp, argument
243 nm_access_unlocked(void *vnp, int mode, cred_t *crp) argument
263 nm_setattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *crp, caller_context_t *ctp) argument
336 nm_access(vnode_t *vp, int mode, int flags, cred_t *crp, caller_context_t *ct) argument
379 nm_link(vnode_t *tdvp, vnode_t *vp, char *tnm, cred_t *crp, caller_context_t *ct, int flags) argument
386 nm_fsync(vnode_t *vp, int syncflag, cred_t *crp, caller_context_t *ct) argument
394 nm_inactive(vnode_t *vp, cred_t *crp, caller_context_t *ct) argument
[all...]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dpmap.c263 xdr_rmtcallres(XDR *xdrs, struct rmtcallres *crp) argument
267 port_ptr = (caddr_t)crp->port_ptr;
269 xdr_u_int(xdrs, &crp->resultslen)) {
270 crp->port_ptr = (rpcport_t *)port_ptr;
271 return ((*(crp->xdr_results))(xdrs, crp->results_ptr));
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Ddisp1.c654 RSTATUS *crp; local
676 crp = rp;
679 if (*s_dest && !STREQU(s_dest, crp->request->destination))
682 if (current && !(crp->request->outcome & RS_PRINTING))
686 !STREQU(s_req_id, crp->secure->req_id))
689 if (*s_user && !bangequ(s_user, crp->secure->user))
692 if (!md->admin && md->uid != crp->secure->uid) {
694 return (Strdup(crp->secure->req_id));
703 (md->slabel != NULL) && (crp->secure->slabel != NULL) &&
704 (!STREQU(md->slabel, crp
[all...]
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifosubr.c407 fifovp(vnode_t *vp, cred_t *crp) argument
452 if (VOP_GETATTR(vp, &va, 0, crp, NULL) == 0) {
586 fifo_stropen(vnode_t **vpp, int flag, cred_t *crp, int dotwist, int lockheld) argument
650 if ((error = stropen(oldvp, &pdev, flag, crp)) != 0) {
681 if (error = fifo_connld(vpp, flag, crp)) {
682 (void) fifo_close(oldvp, flag, 1, 0, crp, NULL);
693 (void) fifo_close(oldvp, flag, 1, 0, crp, NULL);
721 if ((error = stropen(oldvp, &pdev, flag, crp)) != 0) {
899 fifo_connld(struct vnode **vpp, int flag, cred_t *crp) argument
981 crhold(VTOF(vp1)->fn_pcredp = crp);
[all...]

Completed in 198 milliseconds

123