Home
last modified time | relevance | path

Searched refs:anon_name (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/include/linux/
Dmm_inline.h377 static inline void anon_vma_name_get(struct anon_vma_name *anon_name) in anon_vma_name_get() argument
379 if (anon_name) in anon_vma_name_get()
380 kref_get(&anon_name->kref); in anon_vma_name_get()
383 static inline void anon_vma_name_put(struct anon_vma_name *anon_name) in anon_vma_name_put() argument
385 if (anon_name) in anon_vma_name_put()
386 kref_put(&anon_name->kref, anon_vma_name_free); in anon_vma_name_put()
390 struct anon_vma_name *anon_vma_name_reuse(struct anon_vma_name *anon_name) in anon_vma_name_reuse() argument
393 if (kref_read(&anon_name->kref) < REFCOUNT_MAX) { in anon_vma_name_reuse()
394 anon_vma_name_get(anon_name); in anon_vma_name_reuse()
395 return anon_name; in anon_vma_name_reuse()
[all …]
Dmm_types.h477 struct anon_vma_name *anon_name; member
Dmm.h3482 struct anon_vma_name *anon_name);
3486 unsigned long len_in, struct anon_vma_name *anon_name) { in madvise_set_anon_name() argument
/linux-6.1.9/mm/
Dmadvise.c73 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
[all …]
Dsecretmem.c195 const char *anon_name = "[secretmem]"; in secretmem_file_create() local
196 const struct qstr qname = QSTR_INIT(anon_name, strlen(anon_name)); in secretmem_file_create()
Dmmap.c869 struct anon_vma_name *anon_name) in is_mergeable_vma() argument
887 if (!anon_vma_name_eq(anon_vma_name(vma), anon_name)) in is_mergeable_vma()
922 struct anon_vma_name *anon_name) in can_vma_merge_before() argument
924 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name) && in can_vma_merge_before()
944 struct anon_vma_name *anon_name) in can_vma_merge_after() argument
946 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name) && in can_vma_merge_after()
1005 struct anon_vma_name *anon_name) in vma_merge() argument
1035 vm_userfaultfd_ctx, anon_name)) { in vma_merge()
1043 vm_userfaultfd_ctx, anon_name)) { in vma_merge()
/linux-6.1.9/fs/proc/
Dtask_mmu.c315 struct anon_vma_name *anon_name; in show_map_vma() local
333 anon_name = anon_vma_name(vma); in show_map_vma()
334 if (anon_name) { in show_map_vma()
336 seq_printf(m, "[anon:%s]", anon_name->name); in show_map_vma()
/linux-6.1.9/kernel/
Dsys.c2306 struct anon_vma_name *anon_name = NULL; in prctl_set_vma() local
2326 anon_name = anon_vma_name_alloc(name); in prctl_set_vma()
2328 if (!anon_name) in prctl_set_vma()
2334 error = madvise_set_anon_name(mm, addr, size, anon_name); in prctl_set_vma()
2336 anon_vma_name_put(anon_name); in prctl_set_vma()