Lines Matching refs:shm_perm
272 if (error = ipcperm_access(&sp->shm_perm, SHM_R, CRED()))
275 (error = ipcperm_access(&sp->shm_perm, SHM_W, CRED())))
288 if (useISM && (error = ipcperm_access(&sp->shm_perm, SHM_W, CRED())))
603 if (sp->shm_perm.ipc_id != IPC_ID_INVAL) {
606 sp->shm_perm.ipc_proj->kpj_data.kpd_shmmax -= rsize;
607 sp->shm_perm.ipc_zone_ref.zref_zone->zone_shmmax -= rsize;
661 if (error = ipcperm_set(shm_svc, cr, &sp->shm_perm,
662 &STRUCT_BUF(ds)->shm_perm, mdl))
668 if (error = ipcperm_access(&sp->shm_perm, SHM_R, cr))
671 nattch = sp->shm_perm.ipc_ref - 1;
673 ipcperm_stat(&STRUCT_BUF(ds)->shm_perm, &sp->shm_perm, mdl);
693 &sp->shm_perm, &ds64.shmx_perm))
699 nattch = sp->shm_perm.ipc_ref - 1;
701 ipcperm_stat64(&ds64.shmx_perm, &sp->shm_perm);
776 (void) ipc_lock(shm_svc, sp->shm_perm.ipc_id);
840 if (!IPC_FREE(&sp->shm_perm)) {
923 sp->shm_perm.ipc_proj->kpj_rctls, pp, rsize,
926 sp->shm_perm.ipc_zone_ref.zref_zone->zone_rctls, pp, rsize,
931 sp->shm_perm.ipc_proj->kpj_data.kpd_shmmax += rsize;
932 sp->shm_perm.ipc_zone_ref.zref_zone->zone_shmmax += rsize;
934 lock = ipc_commit_end(shm_svc, &sp->shm_perm);
940 *rvp = (uintptr_t)(sp->shm_perm.ipc_id);
1087 mp = ipc_lock(shm_svc, sp->shm_perm.ipc_id);
1213 proj = sp->shm_perm.ipc_proj;
1260 zone = sp->shm_perm.ipc_zone_ref.zref_zone;
1306 if (IPC_FREE(&sap->sa_id->shm_perm))
1309 return (sap->sa_id->shm_perm.ipc_id);