Home | History | Annotate | Download | only in kernel

Lines Matching defs:ptr

70   void *ptr;
72 ptr = kmalloc(size, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
74 if (ptr) {
75 debug_print(mod_alloc, "(location: %p) allocated", ptr);
79 return ptr;
83 crypto_free(void *ptr) {
85 debug_print(mod_alloc, "(location: %p) freed", ptr);
87 kfree(ptr);
95 void *ptr;
97 ptr = malloc(size);
99 if (ptr) {
100 debug_print(mod_alloc, "(location: %p) allocated", ptr);
104 return ptr;
108 crypto_free(void *ptr) {
110 debug_print(mod_alloc, "(location: %p) freed", ptr);
112 free(ptr);