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

Lines Matching refs:vregion

40     struct vregion *vregion = vspace_get_region(get_current_vspace(), buf);
41 assert(vregion);
43 err = vregion_destroy(vregion);
53 struct vregion *vregion, size_t size,
63 // Create a memobj and vregion
69 err1 = vregion_map_aligned(vregion, get_current_vspace(),
77 *retaddr = (void*)vspace_genvaddr_to_lvaddr(vregion_get_base_addr(vregion));
94 * The memory object and vregion are returned so the user can call fill and
98 struct vregion **ret_vregion, size_t size,
104 struct vregion *vregion = NULL;
110 vregion = malloc(sizeof(struct vregion));
111 assert(vregion != NULL);
113 err = vspace_map_anon_nomalloc(retaddr, memobj, vregion, size,
117 free(vregion);
120 *ret_vregion = vregion;
129 * The memory object and vregion are returned so the user can call fill and
133 struct vregion **ret_vregion, size_t size,
139 struct vregion *vregion = NULL;
145 vregion = malloc(sizeof(struct vregion));
146 assert(vregion != NULL);
148 err = vspace_map_anon_nomalloc(retaddr, memobj, vregion, size,
152 free(vregion);
155 *ret_vregion = vregion;
164 * The memory object and vregion are returned so the user can call fill and
169 struct vregion **ret_vregion,
174 struct vregion *vregion = NULL;
182 vregion = malloc(sizeof(struct vregion));
183 if (!vregion) {
188 // Create a memobj and vregion
194 err1 = vregion_map_fixed(vregion, get_current_vspace(), memobj, 0, size,
201 *ret_vregion = vregion;
214 if (vregion) {
215 err2 = vregion_destroy(vregion);
219 free(vregion);
229 struct vregion **retvregion)
239 struct vregion **retvregion)
249 struct vregion **retvregion)
253 struct vregion *vregion = NULL;
263 vregion = malloc(sizeof(struct vregion));
264 if (!vregion) {
282 err1 = vregion_map_fixed(vregion, get_current_vspace(), memobj, 0, size, addr, flags);
288 err1 = memobj->f.pagefault(memobj, vregion, 0, 0);
298 *retvregion = vregion;
309 if (vregion) {
310 err2 = vregion_destroy(vregion);
325 struct vregion **retvregion)
339 struct vregion **retvregion)
343 struct vregion *vregion = NULL;
353 vregion = calloc(1, sizeof(struct vregion));
354 if (!vregion) {
372 err1 = vregion_map_aligned(vregion, get_current_vspace(), memobj, 0, size,
379 err1 = memobj->f.pagefault(memobj, vregion, 0, 0);
385 *retaddr = (void*)vspace_genvaddr_to_lvaddr(vregion_get_base_addr(vregion));
390 *retvregion = vregion;
401 if (vregion) {
402 err2 = vregion_destroy(vregion);
411 struct vregion *vregion, size_t size,
424 err = vregion_map(vregion, get_current_vspace(), &memobj->m, 0, size,
429 err = memobj->m.f.pagefault(&memobj->m, vregion, 0, 0);