MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / kmem_cache_alloc

Function kmem_cache_alloc

Ext4Fsd/linux.c:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void* kmem_cache_alloc(kmem_cache_t *kc, int flags)
92{
93 PVOID ptr = NULL;
94 ptr = ExAllocateFromNPagedLookasideList(&(kc->la));
95 if (ptr) {
96 atomic_inc(&kc->count);
97 atomic_inc(&kc->acount);
98 }
99 return ptr;
100}
101
102void kmem_cache_free(kmem_cache_t *kc, void *p)
103{

Callers 10

new_buffer_headFunction · 0.85
insert_revoke_hashFunction · 0.85
journal_init_revokeFunction · 0.85
insert_revoke_hashFunction · 0.85
jbd2_allocFunction · 0.85
jbd2_alloc_handleFunction · 0.85
jbd2_alloc_inodeFunction · 0.85
jbd_alloc_handleFunction · 0.85

Calls 1

atomic_incFunction · 0.85

Tested by

no test coverage detected