OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libmem/] [malloc/] [malloc.h] - Rev 2

Compare with Previous | Blame | View Log

#ifndef __PRIVATE_MALLOC_H__
#define __PRIVATE_MALLOC_H__
 
#include <stddef.h>
#include <string.h>
 
void *kmalloc(size_t size);
void kfree(void *blk);
 
static inline void *kzalloc(size_t size)
{
	void *buf = kmalloc(size);
 
	memset(buf, 0, size);
	return buf;
}
 
 
#endif /*__PRIVATE_MALLOC_H__ */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.