void * __attribute__ ((malloc)) realloc(void * ptr, size_t size) { spin_lock(&lock); void * ret = klrealloc(ptr, size); spin_unlock(&lock); return ret; }
void * __attribute__ ((malloc)) realloc(void * ptr, uintptr_t size) { spin_lock(&mem_lock, __FUNCTION__); void * ret = klrealloc(ptr, size); spin_unlock(&mem_lock); return ret; }