Lines Matching refs:vn_a
1430 int (*crfp)(), struct segvn_crargs *vn_a, int *segcreated)
1440 int do_off = (vn_a->vp != NULL || vn_a->amp != NULL);
1446 ASSERT(vn_a->vp == NULL || vn_a->amp == NULL);
1448 vn_a->offset = 0;
1456 vn_a->szc = 0;
1457 error = (*crfp)(seg, vn_a);
1488 vn_a->szc = szc;
1489 error = (*crfp)(seg, vn_a);
1498 vn_a->offset += segsize;
1517 vn_a->szc = szc;
1518 error = (*crfp)(seg, vn_a);
1527 vn_a->offset += segsize;
1544 int (*crfp)(), struct segvn_crargs *vn_a, int *segcreated)
1546 uint_t mapflags = vn_a->flags & (MAP_TEXT | MAP_INITDATA);
1547 int type = (vn_a->type == MAP_SHARED) ? MAPPGSZC_SHM : MAPPGSZC_PRIVM;
1560 ASSERT(vn_a->vp != NULL);
1561 ASSERT(vn_a->amp == NULL);
1569 vn_a->szc = 0;
1570 error = (*crfp)(seg, vn_a);
1581 if (VOP_GETATTR(vn_a->vp, &va, ATTR_HINT, vn_a->cred, NULL) != 0) {
1585 eoff = vn_a->offset & PAGEMASK;
1593 size = va.va_size - (vn_a->offset & PAGEMASK);
1604 vn_a->flags |= _MAP_TEXTREPL;
1606 error = as_map_segvn_segs(as, addr, size, szcvec, crfp, vn_a,
1626 int (*crfp)(), struct segvn_crargs *vn_a, int *segcreated)
1631 ASSERT(vn_a->type == MAP_SHARED || vn_a->type == MAP_PRIVATE);
1632 if (vn_a->type == MAP_SHARED) {
1634 } else if (vn_a->type == MAP_PRIVATE) {
1635 if (vn_a->szc == AS_MAP_HEAP) {
1637 } else if (vn_a->szc == AS_MAP_STACK) {
1643 szcvec = map_pgszcvec(addr, size, vn_a->amp == NULL ?
1644 (uintptr_t)addr : (uintptr_t)P2ROUNDUP(vn_a->offset, PAGESIZE),
1645 (vn_a->flags & MAP_TEXT), type, 0);
1649 ASSERT(vn_a->vp == NULL);
1652 crfp, vn_a, segcreated));