Beispiel #1
0
void * __attribute__ ((malloc)) calloc(size_t nmemb, size_t size) {
	spin_lock(&lock);
	void * ret = klcalloc(nmemb, size);
	spin_unlock(&lock);
	return ret;
}
Beispiel #2
0
void * __attribute__ ((malloc)) calloc(uintptr_t nmemb, uintptr_t size) {
	spin_lock(mem_lock);
	void * ret = klcalloc(nmemb, size);
	spin_unlock(mem_lock);
	return ret;
}