• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/barrelfish/vspace/

Lines Matching refs:vregion

38 static errval_t map_region(struct memobj *memobj, struct vregion *vregion)
43 assert(memobj->size >= (vregion->offset + vregion->size));
45 /* the vregion must start at one of the backed frames */
46 if (vregion->offset % mo_numa->stride) {
50 if (mo_numa->vregion) {
54 mo_numa->vregion = vregion;
65 static errval_t unmap_region(struct memobj *memobj, struct vregion *vregion)
70 if (mo_numa->vregion != vregion) {
74 struct vspace *vspace = vregion_get_vspace(vregion);
77 genvaddr_t vreg_base = vregion_get_base_addr(vregion);
78 genvaddr_t vreg_offset = vregion_get_offset(vregion);
80 err = pmap->f.unmap(pmap, vreg_base + vreg_offset, vregion->size, NULL);
85 mo_numa->vregion = NULL;
94 * \param region The vregion to modify the mappings on
100 struct vregion *vregion,
105 struct vspace *vspace = vregion_get_vspace(vregion);
107 genvaddr_t base = vregion_get_base_addr(vregion);
108 genvaddr_t vregion_offset = vregion_get_offset(vregion);
124 * \param region The vregion to modify the state on
129 struct vregion *vregion,
142 * \param region The vregion to modify the state on
147 struct vregion *vregion,
243 * \param region The associated vregion
251 struct vregion *vregion,
259 assert(mo_numa->vregion == vregion);
271 struct vspace *vspace = vregion_get_vspace(vregion);
273 genvaddr_t base = vregion_get_base_addr(vregion);
274 genvaddr_t vregion_offset = vregion_get_offset(vregion);
275 vregion_flags_t flags = vregion_get_flags(vregion);
381 mo_numa->vregion = NULL;
401 struct vregion *vregion = mo_numa->vregion;
403 err = vregion_destroy(vregion);