Lines Matching refs:anon_name
73 struct anon_vma_name *anon_name; in anon_vma_name_alloc() local
78 anon_name = kmalloc(struct_size(anon_name, name, count), GFP_KERNEL); in anon_vma_name_alloc()
79 if (anon_name) { in anon_vma_name_alloc()
80 kref_init(&anon_name->kref); in anon_vma_name_alloc()
81 memcpy(anon_name->name, name, count); in anon_vma_name_alloc()
84 return anon_name; in anon_vma_name_alloc()
89 struct anon_vma_name *anon_name = in anon_vma_name_free() local
91 kfree(anon_name); in anon_vma_name_free()
101 return vma->anon_name; in anon_vma_name()
106 struct anon_vma_name *anon_name) in replace_anon_vma_name() argument
110 if (!anon_name) { in replace_anon_vma_name()
111 vma->anon_name = NULL; in replace_anon_vma_name()
116 if (anon_vma_name_eq(orig_name, anon_name)) in replace_anon_vma_name()
119 vma->anon_name = anon_vma_name_reuse(anon_name); in replace_anon_vma_name()
126 struct anon_vma_name *anon_name) in replace_anon_vma_name() argument
128 if (anon_name) in replace_anon_vma_name()
143 struct anon_vma_name *anon_name) in madvise_update_vma() argument
149 if (new_flags == vma->vm_flags && anon_vma_name_eq(anon_vma_name(vma), anon_name)) { in madvise_update_vma()
157 vma->vm_userfaultfd_ctx, anon_name); in madvise_update_vma()
187 error = replace_anon_vma_name(vma, anon_name); in madvise_update_vma()
1010 struct anon_vma_name *anon_name; in madvise_vma_behavior() local
1079 anon_name = anon_vma_name(vma); in madvise_vma_behavior()
1080 anon_vma_name_get(anon_name); in madvise_vma_behavior()
1082 anon_name); in madvise_vma_behavior()
1083 anon_vma_name_put(anon_name); in madvise_vma_behavior()
1271 unsigned long anon_name) in madvise_vma_anon_name() argument
1280 (struct anon_vma_name *)anon_name); in madvise_vma_anon_name()
1292 unsigned long len_in, struct anon_vma_name *anon_name) in madvise_set_anon_name() argument
1312 return madvise_walk_vmas(mm, start, end, (unsigned long)anon_name, in madvise_set_anon_name()