Home
last modified time | relevance | path

Searched refs:kcred (Results 1 – 25 of 175) sorted by relevance

1234567

/titanic_41/usr/src/uts/common/io/drm/
H A Ddrm_agpsupport.c128 (uintptr_t)0, FKIOCTL, kcred, &rval); in drm_agp_acquire()
151 (intptr_t)0, FKIOCTL, kcred, &rval); in drm_agp_release()
168 (intptr_t)0, FKIOCTL, kcred, &rval); in drm_agp_do_release()
199 (intptr_t)&setup, FKIOCTL, kcred, &rval); in drm_agp_enable()
234 (intptr_t)&alloc, FKIOCTL, kcred, &rval); in drm_agp_alloc()
304 (intptr_t)&unbind, FKIOCTL, kcred, &rval); in drm_agp_unbind()
372 (intptr_t)agpu_key, FKIOCTL, kcred, &rval); in drm_agp_free()
398 retval = ldi_open_by_name(AGP_DEVICE, FEXCL, kcred, in drm_agp_init()
407 (intptr_t)&agp->agp_info, FKIOCTL, kcred, &rval); in drm_agp_init()
418 (void) ldi_close(agp->agpgart_lh, FEXCL, kcred); in drm_agp_init()
[all …]
/titanic_41/usr/src/uts/common/io/
H A Dconsconfig_dacf.c467 FKIOCTL, kcred, &rval); in consconfig_kbd_abort_enable()
487 FKIOCTL, kcred, &rval); in consconfig_kbd_abort_disable()
565 err = ldi_ioctl(lh, I_STR, (intptr_t)&strioc, FKIOCTL, kcred, &rval); in consconfig_get_polledio()
601 FREAD|FWRITE|FNOCTTY, kcred, &lh, sp->cons_li) != 0) in consconfig_setup_polledio()
618 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio()
630 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio()
769 kcred, &wc_lh, sp->cons_li); in consconfig_relink_wc()
781 FKIOCTL, kcred, muxid); in consconfig_relink_wc()
790 FKIOCTL, kcred, &rval); in consconfig_relink_wc()
799 (void) ldi_close(wc_lh, FREAD|FWRITE, kcred); in consconfig_relink_wc()
[all …]
H A Dl_strplumb.c230 kcred, &lh, li); in kstr_autopush()
238 kcred, &lh, li); in kstr_autopush()
255 FKIOCTL, kcred, &rval); in kstr_autopush()
259 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
290 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
301 FKIOCTL, kcred, &rval); in kstr_autopush()
306 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
340 FKIOCTL, kcred, &rval); in kstr_autopush()
345 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
349 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dvdev_disk.c262 FKIOCTL, kcred, NULL) == 0) { in vdev_disk_get_space()
369 error = ldi_open_by_name(buf, spa_mode(spa), kcred, in vdev_disk_open()
386 kcred, &dvd->vd_lh, zfs_li); in vdev_disk_open()
397 kcred); in vdev_disk_open()
417 spa_mode(spa), kcred, &dvd->vd_lh, zfs_li); in vdev_disk_open()
433 kcred, &dvd->vd_lh, zfs_li); in vdev_disk_open()
442 kcred, &dvd->vd_lh, zfs_li); in vdev_disk_open()
531 (intptr_t)dkmext, FKIOCTL, kcred, NULL)) == 0) { in vdev_disk_open()
536 (intptr_t)dkm, FKIOCTL, kcred, NULL)) == 0) { in vdev_disk_open()
573 FKIOCTL, kcred, NULL); in vdev_disk_open()
[all …]
H A Dvdev_file.c112 error = VOP_GETATTR(vf->vf_vnode, &vattr, 0, kcred, NULL); in vdev_file_open()
133 (void) VOP_PUTPAGE(vf->vf_vnode, 0, 0, B_INVAL, kcred, NULL); in vdev_file_close()
135 kcred, NULL); in vdev_file_close()
174 UIO_SYSSPACE, 0, RLIM64_INFINITY, kcred, &resid); in vdev_file_io_strategy()
204 kcred, NULL); in vdev_file_io_start()
H A Dzfs_replay.c356 0, 0, &vp, kcred, vflg, NULL, &vsec); in zfs_replay_create_acl()
386 &vp, kcred, NULL, vflg, &vsec); in zfs_replay_create_acl()
485 0, 0, &vp, kcred, vflg, NULL, NULL); in zfs_replay_create()
503 &vp, kcred, NULL, vflg, NULL); in zfs_replay_create()
506 error = zfs_make_xattrdir(dzp, &xva.xva_vattr, &vp, kcred); in zfs_replay_create()
512 link, kcred, NULL, vflg); in zfs_replay_create()
549 error = VOP_REMOVE(ZTOV(dzp), name, kcred, NULL, vflg); in zfs_replay_remove()
552 error = VOP_RMDIR(ZTOV(dzp), name, NULL, kcred, NULL, vflg); in zfs_replay_remove()
585 error = VOP_LINK(ZTOV(dzp), ZTOV(zp), name, kcred, NULL, vflg); in zfs_replay_link()
616 error = VOP_RENAME(ZTOV(sdzp), sname, ZTOV(tdzp), tname, kcred, in zfs_replay_rename()
[all …]
/titanic_41/usr/src/uts/common/inet/ip/
H A Dip_helper_stream.c73 if (kcred != crp || msgdsize(mp->b_cont) != sizeof (void *)) { in ip_helper_share_conn()
203 DEV_IP), IP_HELPER_STR, kcred, &helper->iphs_handle, li); in ip_create_helper_stream()
214 (void) ldi_close(helper->iphs_handle, 0, kcred); in ip_create_helper_stream()
224 FKIOCTL, kcred, &ret); in ip_create_helper_stream()
231 (void) ldi_close(helper->iphs_handle, 0, kcred); in ip_create_helper_stream()
258 IP_HELPER_STR, kcred); in ip_free_helper_stream()
/titanic_41/usr/src/uts/common/inet/sockmods/
H A Dsockmod_rds.c60 ret = ldi_open_by_name(RDSV3_DEVICE_NAME, FREAD | FWRITE, kcred, in _init()
71 (void) ldi_close(rdsv3_transport_handle, FNDELAY, kcred); in _init()
92 (void) ldi_close(rdsv3_transport_handle, FNDELAY, kcred); in _fini()
/titanic_41/usr/src/uts/common/os/
H A Drctl_proc.c231 RCTL_LOCAL_SIGNAL, SIGXCPU, kcred); in rctlproc_default_init()
238 RCTL_LOCAL_SIGNAL | RCTL_LOCAL_DENY, SIGXFSZ, kcred); in rctlproc_default_init()
245 RCTL_LOCAL_DENY, 0, kcred); in rctlproc_default_init()
258 RCTL_LOCAL_DENY, 0, kcred); in rctlproc_default_init()
265 RCTL_LOCAL_DENY, 0, kcred); in rctlproc_default_init()
273 gp, RCTL_LOCAL_DENY, 0, kcred); in rctlproc_default_init()
280 RCTL_LOCAL_DENY, 0, kcred); in rctlproc_default_init()
H A Dcred.c92 cred_t *kcred; variable
207 kcred = cralloc(); in cred_init()
209 bzero(kcred, crsize); in cred_init()
210 kcred->cr_ref = 1; in cred_init()
213 kcred->cr_zone = &zone0; in cred_init()
215 priv_fillset(&CR_LPRIV(kcred)); in cred_init()
216 CR_IPRIV(kcred) = *priv_basic; in cred_init()
220 priv_addset(&CR_IPRIV(kcred), PRIV_FILE_CHOWN_SELF); in cred_init()
224 priv_delset(&CR_IPRIV(kcred), PRIV_FILE_LINK_ANY); in cred_init()
226 CR_EPRIV(kcred) = CR_PPRIV(kcred) = CR_IPRIV(kcred); in cred_init()
[all …]
H A Dacct.c130 (void) VOP_CLOSE(ag->acctvp, FWRITE, 1, (offset_t)0, kcred, in acct_shutdown()
433 if (VOP_GETATTR(vp, &va, 0, kcred, NULL) == 0) { in acct()
436 (rlim64_t)MAXOFF32_T, kcred, &resid); in acct()
438 (void) VOP_SETATTR(vp, &va, 0, kcred, NULL); in acct()
/titanic_41/usr/src/uts/common/io/softmac/
H A Dsoftmac_main.c705 err = ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh, li); in softmac_mac_register()
709 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register()
725 if (ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh, in softmac_mac_register()
734 while (ldi_ioctl(lh, I_POP, 0, FKIOCTL, kcred, &rval) == 0) in softmac_mac_register()
745 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register()
755 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register()
762 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register()
773 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register()
790 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register()
803 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register()
[all …]
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dnl7clogd.c251 ret = VOP_WRITE(vp, &uio, 0, kcred, NULL); in logd_log_write()
281 1, (offset_t)0, kcred, NULL); in logd_log_write()
322 DIRECTIO_ON, 0, kcred, NULL, NULL); in logd_log_write()
328 (void) VOP_REMOVE(nca_fio_dvp(&fio), symlink, kcred, NULL, 0); in logd_log_write()
336 &attr, nca_fio_name(&fio), kcred, NULL, 0); in logd_log_write()
472 ret = VOP_READLINK(svp, &uio, kcred, NULL); in nl7c_logd_init()
474 (void) VOP_REMOVE(dvp, symlink, kcred, NULL, 0); in nl7c_logd_init()
501 (void) VOP_IOCTL(vp, _FIODIRECTIO, DIRECTIO_ON, 0, kcred, NULL, NULL); in nl7c_logd_init()
523 (void) VOP_REMOVE(dvp, symlink, kcred, NULL, 0); in nl7c_logd_init()
524 ret = VOP_SYMLINK(dvp, symlink, &attr, nca_fio_name(&fio), kcred, NULL, in nl7c_logd_init()
[all …]
/titanic_41/usr/src/lib/libfakekernel/common/
H A Dcred.c27 cred_t *kcred = &cred0; variable
58 return (kcred); in zone_kcred()
/titanic_41/usr/src/uts/intel/io/agpgart/
H A Dagpgart.c349 if ((ldi_open_by_name(buf, 0, kcred, in agp_master_regis_byname()
396 if ((ldi_open_by_name(buf, 0, kcred, in agp_target_regis_byname()
449 ret = ldi_open_by_name(buf, 0, kcred, in amd64_gart_regis_byname()
486 (void) ldi_close(*master_hdlp, 0, kcred); in agp_master_unregister()
498 (void) ldi_close(*target_hdlp, 0, kcred); in agp_target_unregister()
518 (void) ldi_close(gart_list->gart_devhdl, 0, kcred); in amd64_gart_unregister()
552 (intptr_t)&vtype, FKIOCTL, kcred, 0); in lyr_detect_master_type()
582 FKIOCTL, kcred, 0); in lyr_detect_target_type()
766 FKIOCTL, kcred, 0); in lyr_get_info()
775 (intptr_t)&prealloc_size, FKIOCTL, kcred, 0); in lyr_get_info()
[all …]
/titanic_41/usr/src/uts/common/fs/cachefs/
H A Dcachefs_fscache.c813 error = VOP_MKDIR(cachep->c_dirvp, namep, attrp, &fscdirvp, kcred, in fscdir_create()
824 error = VOP_GETATTR(fscdirvp, attrp, 0, kcred, NULL); in fscdir_create()
835 0600, &infovp, kcred, 0, NULL, NULL); in fscdir_create()
842 error = VOP_SETATTR(infovp, attrp, 0, kcred, NULL); in fscdir_create()
861 name, kcred, NULL, 0); in fscdir_create()
869 error = VOP_SYMLINK(cachep->c_dirvp, namep, attrp, name, kcred, NULL, in fscdir_create()
884 error = VOP_MKDIR(fscdirvp, ATTRCACHE_NAME, attrp, &attrvp, kcred, NULL, in fscdir_create()
944 0, NULL, kcred, NULL, NULL, NULL); in fscdir_find()
958 NULL, 0, NULL, kcred, NULL, NULL, NULL); in fscdir_find()
980 &attrvp, NULL, 0, NULL, kcred, NULL, NULL, NULL); in fscdir_find()
[all …]
H A Dcachefs_dlog.c205 &fscp->fs_dlogfile, NULL, 0, NULL, kcred, NULL, NULL, NULL); in cachefs_dlog_setup()
219 &vattr, 0, 0666, &fscp->fs_dlogfile, kcred, 0, NULL, NULL); in cachefs_dlog_setup()
232 RLIM_INFINITY, kcred, NULL); in cachefs_dlog_setup()
248 &vattr, 0, 0666, &fscp->fs_dmapfile, kcred, 0, NULL, NULL); in cachefs_dlog_setup()
274 error = VOP_GETATTR(fscp->fs_dlogfile, &vattr, 0, kcred, NULL); in cachefs_dlog_setup()
296 UIO_SYSSPACE, FSYNC, RLIM_INFINITY, kcred, NULL); in cachefs_dlog_setup()
330 &fscp->fs_dmapfile, NULL, 0, NULL, kcred, NULL, NULL, NULL); in cachefs_dlog_setup()
341 error = VOP_GETATTR(fscp->fs_dmapfile, &vattr, 0, kcred, NULL); in cachefs_dlog_setup()
361 CACHEFS_DLOG_FILE, kcred, NULL, 0); in cachefs_dlog_setup()
367 CACHEFS_DMAP_FILE, kcred, NULL, 0); in cachefs_dlog_setup()
[all …]
H A Dcachefs_filegrp.c327 error = VOP_REMOVE(fscp->fs_fsattrdir, fname, kcred, in filegrp_destroy()
624 fscp->fs_fscdirvp, kcred, NULL, 0); in filegrp_ffrele()
688 kcred, NULL); in filegrp_sync()
691 error = VOP_FSYNC(fgp->fg_attrvp, FSYNC, kcred, NULL); in filegrp_sync()
761 UIO_SYSSPACE, 0, (long long)0, kcred, NULL); in filegrp_read_metadata()
933 UIO_SYSSPACE, 0, (rlim64_t)RLIM_INFINITY, kcred, NULL); in filegrp_write_metadata()
1364 0, NULL, kcred, NULL, NULL, NULL); in filegrpdir_find()
1425 &attrvp, NULL, 0, NULL, kcred, NULL, NULL, NULL); in filegrpattr_find()
1434 0, (rlim64_t)RLIM_INFINITY, kcred, NULL); in filegrpattr_find()
1569 error = VOP_MKDIR(fscp->fs_fscdirvp, fname, attrp, &dirvp, kcred, NULL, in filegrpdir_create()
[all …]
H A Dcachefs_subr.c132 rp->cfs_cr = kcred; in cachefs_cache_create()
276 error = VOP_GETATTR(cdvp, attrp, 0, kcred, NULL); in cachefs_cache_activate_ro()
289 kcred, NULL, NULL, NULL); in cachefs_cache_activate_ro()
298 kcred, NULL, NULL, NULL); in cachefs_cache_activate_ro()
308 0, (rlim64_t)0, kcred, NULL); in cachefs_cache_activate_ro()
323 error = VOP_LOOKUP(cdvp, RESOURCE_NAME, &rifvp, NULL, 0, NULL, kcred, in cachefs_cache_activate_ro()
334 (rlim64_t)0, kcred, NULL); in cachefs_cache_activate_ro()
351 UIO_SYSSPACE, 0, 0, kcred, NULL); in cachefs_cache_activate_ro()
360 NULL, 0, NULL, kcred, NULL, NULL, NULL); in cachefs_cache_activate_ro()
389 NULL, 0, NULL, kcred, NULL, NULL, NULL); in cachefs_cache_activate_ro()
[all …]
/titanic_41/usr/src/uts/i86pc/os/
H A Dgraphics.c212 if (ldi_open_by_name(fbpath, FWRITE, kcred, &hdl, li) != 0) { in progressbar_key_abort()
216 kcred, &ret) in progressbar_key_abort()
220 (void) ldi_close(hdl, NULL, kcred); in progressbar_key_abort()
/titanic_41/usr/src/uts/sun4u/io/
H A Dppm_plat.c60 (intptr_t)index, FWRITE | FKIOCTL, kcred, NULL); in ppm_cpu_next()
101 FWRITE | FKIOCTL, kcred, NULL); in ppm_cpu_pre_chng()
137 kcred, NULL); in ppm_cpu_go()
173 FWRITE | FKIOCTL, kcred, NULL); in ppm_cpu_post_chng()
/titanic_41/usr/src/uts/common/fs/dev/
H A Dsdev_profile.c75 if (advp && VOP_LOOKUP(advp, name, avpp, NULL, 0, NULL, kcred, in prof_getattr()
77 (void) VOP_GETATTR(*avpp, vap, 0, kcred, NULL); in prof_getattr()
82 avpp, kcred, NULL, 0, NULL) != 0) { in prof_getattr()
213 NULL, 0, NULL, kcred, NULL, NULL, NULL); in prof_make_dir()
227 kcred); in prof_make_dir()
270 rootdir, gddv, kcred); in prof_lookup_globaldev()
292 (void *)gdir, kcred) == 0) { in prof_lookup_globaldev()
304 (void *)tgt, kcred) == 0) { in prof_make_sym()
390 if (VOP_LOOKUP(SDEVTOV(gdir), name, &gvp, NULL, 0, NULL, kcred, in is_nonempty_dir()
503 error = VOP_READDIR(dvp, &uio, kcred, &eof, NULL, 0); in walk_dir()
[all …]
H A Dsdev_vnops.c424 sdev_update_timestamps(dv->sdev_attrvp, kcred, in sdev_write()
708 sdev_update_timestamps(vp, kcred, in sdev_create()
748 sdev_update_timestamps(SDEVTOV(self), kcred, in sdev_create()
750 sdev_update_timestamps(dvp, kcred, AT_MTIME|AT_ATIME); in sdev_create()
1099 onm, kcred, ct, 0); in sdev_rename()
1103 onm, fromparent->sdev_attrvp, kcred, ct, 0); in sdev_rename()
1186 sdev_update_timestamps(SDEVTOV(self), kcred, in sdev_symlink()
1188 sdev_update_timestamps(dvp, kcred, AT_MTIME|AT_ATIME); in sdev_symlink()
1258 sdev_update_timestamps(SDEVTOV(self), kcred, in sdev_mkdir()
1260 sdev_update_timestamps(dvp, kcred, AT_MTIME|AT_ATIME); in sdev_mkdir()
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Dlseek.c136 FKIOCTL, kcred, NULL, NULL); in lseek32_common()
165 FKIOCTL, kcred, NULL, NULL); in lseek32_common()
311 FKIOCTL, kcred, NULL, NULL); in lseek64()
340 FKIOCTL, kcred, NULL, NULL); in lseek64()
/titanic_41/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu.c1100 ldi_open_by_dev(&devt, OTYP_CHR, (FREAD|FWRITE), kcred, lhp, *lip); in oplmsu_open_msu()
1134 rval = ldi_open_by_name(pathname, (FREAD|FWRITE|FEXCL), kcred, &lh, li); in oplmsu_plink_serial()
1144 while ((ldi_ioctl(lh, I_POP, (intptr_t)0, FKIOCTL, kcred, &param)) in oplmsu_plink_serial()
1151 rval = ldi_ioctl(msu_lh, I_PLINK, (intptr_t)lh, FKIOCTL, kcred, &param); in oplmsu_plink_serial()
1157 (void) ldi_close(lh, (FREAD|FWRITE|FEXCL), kcred); in oplmsu_plink_serial()
1243 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach()
1254 kcred, &param); in oplmsu_dr_attach()
1255 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach()
1267 kcred, &param); in oplmsu_dr_attach()
1269 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach()
[all …]

1234567