Searched refs:vm (Results 1 – 5 of 5) sorted by relevance
222 struct vm_struct *vm; in kasan_mem_notifier() local236 vm = find_vm_area((void *)shadow_start); in kasan_mem_notifier()237 if (vm) in kasan_mem_notifier()563 struct vm_struct *vm = find_vm_area(addr); in kasan_alloc_module_shadow() local565 vm->flags |= VM_KASAN; in kasan_alloc_module_shadow()568 if (vm->flags & VM_DEFER_KMEMLEAK) in kasan_alloc_module_shadow()569 kmemleak_vmalloc(vm, size, gfp_mask); in kasan_alloc_module_shadow()577 void kasan_free_module_shadow(const struct vm_struct *vm) in kasan_free_module_shadow() argument582 if (vm->flags & VM_KASAN) in kasan_free_module_shadow()583 vfree(kasan_mem_to_shadow(vm->addr)); in kasan_free_module_shadow()
1566 va->vm = NULL; in alloc_vmap_area()2233 static inline unsigned int vm_area_page_order(struct vm_struct *vm) in vm_area_page_order() argument2236 return vm->page_order; in vm_area_page_order()2242 static inline void set_vm_area_page_order(struct vm_struct *vm, unsigned int order) in set_vm_area_page_order() argument2245 vm->page_order = order; in set_vm_area_page_order()2261 void __init vm_area_add_early(struct vm_struct *vm) in vm_area_add_early() argument2267 if (tmp->addr >= vm->addr) { in vm_area_add_early()2268 BUG_ON(tmp->addr < vm->addr + vm->size); in vm_area_add_early()2271 BUG_ON(tmp->addr + tmp->size > vm->addr); in vm_area_add_early()2273 vm->next = *p; in vm_area_add_early()[all …]
3165 static struct vm_struct vm; in pcpu_page_first_chunk() local3218 vm.flags = VM_ALLOC; in pcpu_page_first_chunk()3219 vm.size = num_possible_cpus() * ai->unit_size; in pcpu_page_first_chunk()3220 vm_area_register_early(&vm, PAGE_SIZE); in pcpu_page_first_chunk()3224 (unsigned long)vm.addr + unit * ai->unit_size; in pcpu_page_first_chunk()3252 pcpu_setup_first_chunk(ai, vm.addr); in pcpu_page_first_chunk()
308 See Documentation/vm/ksm.rst for more information: KSM is inactive329 /proc/sys/vm/mmap_min_addr tunable.370 (/proc/sys/vm/nr_trim_pages) which specifies the minimum number of859 See tools/testing/selftests/vm/gup_test.c
60 a fair amount of memory if enabled. See tools/vm/page_owner_sort.c