Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dmm_inline.h370 static inline void anon_vma_name_get(struct anon_vma_name *anon_name) in anon_vma_name_get() argument
372 if (anon_name) in anon_vma_name_get()
373 kref_get(&anon_name->kref); in anon_vma_name_get()
376 static inline void anon_vma_name_put(struct anon_vma_name *anon_name) in anon_vma_name_put() argument
378 if (anon_name) in anon_vma_name_put()
379 kref_put(&anon_name->kref, anon_vma_name_free); in anon_vma_name_put()
383 struct anon_vma_name *anon_vma_name_reuse(struct anon_vma_name *anon_name) in anon_vma_name_reuse() argument
386 if (kref_read(&anon_name->kref) < REFCOUNT_MAX) { in anon_vma_name_reuse()
387 anon_vma_name_get(anon_name); in anon_vma_name_reuse()
388 return anon_name; in anon_vma_name_reuse()
[all …]
H A Dmm_types.h678 struct anon_vma_name *anon_name; member
H A Dmm.h4043 struct anon_vma_name *anon_name);
4047 unsigned long len_in, struct anon_vma_name *anon_name) { in madvise_set_anon_name() argument
/openbmc/linux/mm/
H A 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()
98 return vma->anon_name; in anon_vma_name()
103 struct anon_vma_name *anon_name) in replace_anon_vma_name() argument
[all …]
H A Dsecretmem.c197 const char *anon_name = "[secretmem]"; in secretmem_file_create() local
198 const struct qstr qname = QSTR_INIT(anon_name, strlen(anon_name)); in secretmem_file_create()
H A Dmmap.c722 struct anon_vma_name *anon_name, bool may_remove_vma) in is_mergeable_vma() argument
740 if (!anon_vma_name_eq(anon_vma_name(vma), anon_name)) in is_mergeable_vma()
775 struct anon_vma_name *anon_name) in can_vma_merge_before() argument
777 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name, true) && in can_vma_merge_before()
798 struct anon_vma_name *anon_name) in can_vma_merge_after() argument
800 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name, false) && in can_vma_merge_after()
868 struct anon_vma_name *anon_name) in vma_merge() argument
907 pgoff, vm_userfaultfd_ctx, anon_name)) { in vma_merge()
916 vm_userfaultfd_ctx, anon_name)) { in vma_merge()
/openbmc/linux/fs/proc/
H A Dtask_mmu.c263 struct anon_vma_name *anon_name = NULL; in show_map_vma() local
284 anon_name = anon_vma_name(vma); in show_map_vma()
296 if (anon_name) in show_map_vma()
297 seq_printf(m, "[anon_shmem:%s]", anon_name->name); in show_map_vma()
326 if (anon_name) { in show_map_vma()
328 seq_printf(m, "[anon:%s]", anon_name->name); in show_map_vma()
/openbmc/linux/kernel/
H A Dsys.c2324 struct anon_vma_name *anon_name = NULL; in prctl_set_vma() local
2344 anon_name = anon_vma_name_alloc(name); in prctl_set_vma()
2346 if (!anon_name) in prctl_set_vma()
2352 error = madvise_set_anon_name(mm, addr, size, anon_name); in prctl_set_vma()
2354 anon_vma_name_put(anon_name); in prctl_set_vma()