Lines Matching defs:prot
110 size_t len, uint_t prot);
112 size_t len, uint_t prot);
572 a->vp != NULL && a->prot == (PROT_USER | PROT_READ | PROT_EXEC) &&
619 (a->type == MAP_PRIVATE && (a->prot & PROT_WRITE)))) {
648 seg->s_as, seg->s_base, seg->s_size, a->prot,
822 svd->prot = a->prot;
842 (svd->vp->v_flag & VVMEXEC) && (svd->prot & PROT_WRITE)) {
968 svd->prot & ~PROT_WRITE, hat_flag);
995 seg->s_size, (void *)svd->vp, svd->offset, svd->prot,
1000 ASSERT(!trok || !(svd->prot & PROT_WRITE));
1037 (!svd1->pageprot && !svd2->pageprot && incompat(prot)) ||
1097 VPP_SETPROT(vp, svd1->prot);
1107 VPP_SETPROT(vp, svd2->prot);
1279 (!svd1->pageprot && (svd1->prot != a->prot)) ||
1346 VPP_SETPROT(vp, a->prot);
1361 if (svd1->pageprot && (a->prot & PROT_WRITE) &&
1400 (!svd2->pageprot && (svd2->prot != a->prot)) ||
1467 VPP_SETPROT(vp, a->prot);
1484 if (svd2->pageprot && (a->prot & PROT_WRITE) &&
1502 uint_t prot;
1528 * prot need not be computed below 'cause anon_private
1532 prot = svd->pageprot ? VPP_PROT(vpp) : svd->prot;
1550 pp = anon_private(&newap, newseg, addr, prot,
1610 newsvd->prot = svd->prot;
1764 newseg->s_as, newseg->s_base, newseg->s_size, newsvd->prot,
1955 seg->s_as, addr, len, svd->prot, svd->maxprot,
1980 ASSERT(svd->pageprot == 0 && !(svd->prot & PROT_WRITE));
2002 ((svd->prot & PROT_WRITE) || svd->pageprot)) {
2717 uint_t prot;
2760 prot = VPP_PROT(vpage);
2761 if ((prot & protchk) == 0)
2764 prot = svd->prot;
2824 prot &= ~PROT_WRITE;
2880 hat_memload(hat, addr, pp, prot, hat_flag);
2983 prot &= ~PROT_WRITE;
2987 (!svd->pageprot && svd->prot == (prot & vpprot)));
2990 hat_memload_region(hat, addr, opp, prot & vpprot, hat_flag,
3079 pp = anon_private(&ap, seg, addr, prot, opp, pageflags, svd->cred);
3112 prot &= ~PROT_WRITE;
3116 hat_memload(hat, addr, pp, prot, hat_flag);
3791 #define SEGVN_UPDATE_MODBITS(ppa, pages, rw, prot, vpprot) \
3800 ((prot) & (vpprot) & PROT_WRITE)) { \
3805 prot &= ~PROT_WRITE; \
3851 uint_t protchk, prot, vpprot;
3904 prot = svd->prot;
3981 prot = VPP_PROT(vpage);
3983 if ((prot & protchk) == 0) {
4169 seg, a, prot, ppa, vpage, segvn_anypgsz,
4187 hat_memload_array(hat, a, pgsz, ppa, prot,
4202 (!svd->pageprot && svd->prot == (prot & vpprot)));
4262 prot, vpprot);
4264 ppa, prot & vpprot, hat_flag,
4360 prot, vpprot);
4364 ppa, prot & vpprot, hat_flag,
4370 ppa[i], prot & vpprot,
4428 prot, vpprot);
4430 prot & vpprot, hat_flag, svd->rcookie);
4476 SEGVN_UPDATE_MODBITS(ppa, pages, rw, prot, vpprot);
4484 ppa[i], prot & vpprot, hat_flag,
4490 prot & vpprot, hat_flag, svd->rcookie);
4653 uint_t protchk, prot, vpprot;
4696 prot = svd->prot;
4708 prot = VPP_PROT(vpage);
4710 if ((prot & protchk) == 0) {
4732 prot, &vpprot, ppa, &ppa_szc, vpage, rw, brkcow,
4770 prot & vpprot, hat_flag);
4930 uint_t vpprot, prot;
4984 ASSERT(!svd->pageprot && !(svd->prot & PROT_WRITE));
5029 if ((svd->prot & protchk) == 0) {
5211 hat_chgprot(seg->s_as->a_hat, addr, len, svd->prot);
5520 prot = svd->prot & vpprot;
5558 prot = VPP_PROT(&svd->vpage[page]) & vpprot;
5579 prot &= ~PROT_WRITE;
5588 if ((prot & PROT_READ) && !PP_ISMIGRATE(pp)) {
5591 pp, prot, hat_flag,
5669 segvn_setprot(struct seg *seg, caddr_t addr, size_t len, uint_t prot)
5681 if ((svd->maxprot & prot) != prot)
5686 /* return if prot is the same */
5687 if (!svd->pageprot && svd->prot == prot) {
5738 if ((prot & PROT_WRITE) && svd->type == MAP_SHARED &&
5791 if (prot & PROT_WRITE) {
5889 if (svd->prot == prot) {
5893 svd->prot = (uchar_t)prot;
5939 anon_idx, prot)) {
5957 VPP_PROT(svp) != prot) {
5973 if ((VPP_PROT(svp) ^ prot) &
5975 if (prot & PROT_WRITE) {
5993 VPP_SETPROT(svp, prot);
6026 VPP_SETPROT(svp, prot);
6035 if (((prot & PROT_WRITE) != 0 &&
6037 (prot & ~PROT_USER) == PROT_NONE) {
6055 * than prot so we can use hat_chgattr.
6057 hat_chgattr(seg->s_as->a_hat, addr, len, prot);
6329 seg->s_size, szc, svd->prot, svd->vpage,
6367 uint_t prot = svd->prot, vpprot;
6425 prot = VPP_PROT(vpage);
6432 seg, a, prot, vpage, svd->cred)) != 0) {
6444 if ((pp = anon_private(&ap, seg, a, prot,
6471 uint_t prot)
6496 if (VPP_PROT(svp) == prot)
6498 if (!((VPP_PROT(svp) ^ prot) & PROT_WRITE))
6544 if (prot & PROT_WRITE)
6551 if (prot & PROT_WRITE)
6861 segvn_checkprot(struct seg *seg, caddr_t addr, size_t len, uint_t prot)
6875 err = ((svd->prot & prot) != prot) ? EACCES : 0;
6885 if ((VPP_PROT(vp) & prot) != prot) {
6906 protv[--pgno] = svd->prot;
7255 int prot;
7327 if (svd->prot != pageprot) {
7331 prot = svd->prot;
7376 prot = VPP_PROT(vpp);
7379 if (prot != pageprot) {
7689 if (svd->pageprot == 0 && svd->prot != pageprot) {
8687 VPP_SETPROT(vp, svd->prot);
9154 if ((svd->prot & protchk) == 0) {
9216 if ((svd->prot & protchk) == 0) {
9220 if (svd->prot & PROT_WRITE) {
9653 uint_t prot;
9661 prot = VPP_PROT(vpage);
9665 if (prot != VPP_PROT(vpage))
9757 ASSERT(!svd->pageprot && !(svd->prot & PROT_WRITE));