• Home
  • Raw
  • Download

Lines Matching refs:image

31 void __init init_vdso_image(const struct vdso_image *image)  in init_vdso_image()  argument
33 BUG_ON(image->size % PAGE_SIZE != 0); in init_vdso_image()
35 apply_alternatives((struct alt_instr *)(image->data + image->alt), in init_vdso_image()
36 (struct alt_instr *)(image->data + image->alt + in init_vdso_image()
37 image->alt_len)); in init_vdso_image()
45 const struct vdso_image *image = vma->vm_mm->context.vdso_image; in vdso_fault() local
47 if (!image || (vmf->pgoff << PAGE_SHIFT) >= image->size) in vdso_fault()
50 vmf->page = virt_to_page(image->data + (vmf->pgoff << PAGE_SHIFT)); in vdso_fault()
55 static void vdso_fix_landing(const struct vdso_image *image, in vdso_fix_landing() argument
59 if (in_ia32_syscall() && image == &vdso_image_32) { in vdso_fix_landing()
61 unsigned long vdso_land = image->sym_int80_landing_pad; in vdso_fix_landing()
76 const struct vdso_image *image = current->mm->context.vdso_image; in vdso_mremap() local
78 if (image->size != new_size) in vdso_mremap()
81 vdso_fix_landing(image, new_vma); in vdso_mremap()
90 const struct vdso_image *image = vma->vm_mm->context.vdso_image; in vvar_fault() local
93 if (!image) in vvar_fault()
97 image->sym_vvar_start; in vvar_fault()
109 if (sym_offset == image->sym_vvar_page) { in vvar_fault()
112 } else if (sym_offset == image->sym_pvclock_page) { in vvar_fault()
120 } else if (sym_offset == image->sym_hvclock_page) { in vvar_fault()
146 static int map_vdso(const struct vdso_image *image, unsigned long addr) in map_vdso() argument
157 image->size - image->sym_vvar_start, 0, 0); in map_vdso()
163 text_start = addr - image->sym_vvar_start; in map_vdso()
170 image->size, in map_vdso()
182 -image->sym_vvar_start, in map_vdso()
189 do_munmap(mm, text_start, image->size, NULL); in map_vdso()
192 current->mm->context.vdso_image = image; in map_vdso()
245 static int map_vdso_randomized(const struct vdso_image *image) in map_vdso_randomized() argument
247 unsigned long addr = vdso_addr(current->mm->start_stack, image->size-image->sym_vvar_start); in map_vdso_randomized()
249 return map_vdso(image, addr); in map_vdso_randomized()
253 int map_vdso_once(const struct vdso_image *image, unsigned long addr) in map_vdso_once() argument
275 return map_vdso(image, addr); in map_vdso_once()