/linux-6.1.9/mm/ |
D | slab.c | 333 static unsigned long long *dbg_redzone1(struct kmem_cache *cachep, void *objp) in dbg_redzone1() argument 336 return (unsigned long long *) (objp + obj_offset(cachep) - in dbg_redzone1() 340 static unsigned long long *dbg_redzone2(struct kmem_cache *cachep, void *objp) in dbg_redzone2() argument 344 return (unsigned long long *)(objp + cachep->size - in dbg_redzone2() 347 return (unsigned long long *) (objp + cachep->size - in dbg_redzone2() 351 static void **dbg_userword(struct kmem_cache *cachep, void *objp) in dbg_userword() argument 354 return (void **)(objp + cachep->size - BYTES_PER_WORD); in dbg_userword() 360 #define dbg_redzone1(cachep, objp) ({BUG(); (unsigned long long *)NULL;}) argument 361 #define dbg_redzone2(cachep, objp) ({BUG(); (unsigned long long *)NULL;}) argument 362 #define dbg_userword(cachep, objp) ({BUG(); (void **)NULL;}) argument [all …]
|
D | mm_slot.h | 31 static inline void mm_slot_free(struct kmem_cache *cache, void *objp) in mm_slot_free() argument 33 kmem_cache_free(cache, objp); in mm_slot_free()
|
D | slab_common.c | 1412 size_t ksize(const void *objp) in ksize() argument 1431 if (unlikely(ZERO_OR_NULL_PTR(objp)) || !kasan_check_byte(objp)) in ksize() 1434 size = kfence_ksize(objp) ?: __ksize(objp); in ksize() 1439 kasan_unpoison_range(objp, size); in ksize()
|
D | nommu.c | 71 unsigned int kobjsize(const void *objp) in kobjsize() argument 79 if (!objp || !virt_addr_valid(objp)) in kobjsize() 82 page = virt_to_head_page(objp); in kobjsize() 89 return ksize(objp); in kobjsize() 100 vma = find_vma(current->mm, (unsigned long)objp); in kobjsize()
|
D | slub.c | 4444 void *objp; in __kmem_obj_info() local 4455 objp = restore_red_left(s, objp0); in __kmem_obj_info() 4457 objp = objp0; in __kmem_obj_info() 4459 objnr = obj_to_index(s, slab, objp); in __kmem_obj_info() 4460 kpp->kp_data_offset = (unsigned long)((char *)objp0 - (char *)objp); in __kmem_obj_info() 4461 objp = base + s->size * objnr; in __kmem_obj_info() 4462 kpp->kp_objp = objp; in __kmem_obj_info() 4463 if (WARN_ON_ONCE(objp < base || objp >= base + slab->objects * s->size in __kmem_obj_info() 4464 || (objp - base) % s->size) || in __kmem_obj_info() 4468 objp = fixup_red_left(s, objp); in __kmem_obj_info() [all …]
|
D | slab.h | 671 size_t __ksize(const void *objp);
|
D | vmalloc.c | 4035 void *objp = (void *)PAGE_ALIGN((unsigned long)object); in vmalloc_dump_obj() local 4037 vm = find_vm_area(objp); in vmalloc_dump_obj()
|
/linux-6.1.9/tools/testing/radix-tree/ |
D | linux.c | 96 void kmem_cache_free_locked(struct kmem_cache *cachep, void *objp) in kmem_cache_free_locked() argument 98 assert(objp); in kmem_cache_free_locked() 102 printf("Freeing %p to slab\n", objp); in kmem_cache_free_locked() 104 memset(objp, POISON_FREE, cachep->size); in kmem_cache_free_locked() 105 free(objp); in kmem_cache_free_locked() 107 struct radix_tree_node *node = objp; in kmem_cache_free_locked() 114 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free() argument 117 kmem_cache_free_locked(cachep, objp); in kmem_cache_free()
|
/linux-6.1.9/fs/notify/ |
D | mark.c | 283 static void fsnotify_drop_object(unsigned int type, void *objp) in fsnotify_drop_object() argument 285 if (!objp) in fsnotify_drop_object() 290 fsnotify_put_inode_ref(objp); in fsnotify_drop_object() 296 void *objp = NULL; in fsnotify_put_mark() local 316 objp = fsnotify_detach_connector_from_object(conn, &type); in fsnotify_put_mark() 319 objp = __fsnotify_recalc_mask(conn); in fsnotify_put_mark() 325 fsnotify_drop_object(type, objp); in fsnotify_put_mark() 835 void *objp; in fsnotify_destroy_marks() local 862 objp = fsnotify_detach_connector_from_object(conn, &type); in fsnotify_destroy_marks() 866 fsnotify_drop_object(type, objp); in fsnotify_destroy_marks()
|
/linux-6.1.9/include/linux/ |
D | slab.h | 195 void * __must_check krealloc(const void *objp, size_t new_size, gfp_t flags) __realloc_size(2); 196 void kfree(const void *objp); 197 void kfree_sensitive(const void *objp); 198 size_t __ksize(const void *objp); 212 size_t ksize(const void *objp); 447 void kmem_cache_free(struct kmem_cache *s, void *objp);
|
D | mm.h | 257 extern unsigned int kobjsize(const void *objp);
|
/linux-6.1.9/arch/arm/include/asm/ |
D | pgtable-nommu.h | 58 extern unsigned int kobjsize(const void *objp);
|
/linux-6.1.9/tools/include/linux/ |
D | slab.h | 38 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
|