Searched refs:anon_name (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/include/linux/ |
D | mm_inline.h | 370 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 …]
|
D | mm_types.h | 648 struct anon_vma_name *anon_name; member
|
D | mm.h | 4037 struct anon_vma_name *anon_name); 4041 unsigned long len_in, struct anon_vma_name *anon_name) { in madvise_set_anon_name() argument
|
/linux-6.6.21/mm/ |
D | madvise.c | 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() 98 return vma->anon_name; in anon_vma_name() 103 struct anon_vma_name *anon_name) in replace_anon_vma_name() argument [all …]
|
D | secretmem.c | 197 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()
|
D | mmap.c | 723 struct anon_vma_name *anon_name, bool may_remove_vma) in is_mergeable_vma() argument 741 if (!anon_vma_name_eq(anon_vma_name(vma), anon_name)) in is_mergeable_vma() 776 struct anon_vma_name *anon_name) in can_vma_merge_before() argument 778 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name, true) && in can_vma_merge_before() 799 struct anon_vma_name *anon_name) in can_vma_merge_after() argument 801 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name, false) && in can_vma_merge_after() 869 struct anon_vma_name *anon_name) in vma_merge() argument 908 pgoff, vm_userfaultfd_ctx, anon_name)) { in vma_merge() 917 vm_userfaultfd_ctx, anon_name)) { in vma_merge()
|
/linux-6.6.21/fs/proc/ |
D | task_mmu.c | 263 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()
|
/linux-6.6.21/kernel/ |
D | sys.c | 2324 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()
|