7#define NETBUFF_MAX_TEMP 32
43 void* current_tail = (
void*) nb->
tail;
53 return (
void*) nb->
data;
void ioforge_dma_free(void *paddr, void *vaddr, size_t size)
void * ioforge_dma_alloc(size_t size, uintptr_t *paddr)
void free_netbuff(struct netbuff *netbuff)
void * netbuff_put(struct netbuff *nb, size_t len)
void * netbuff_push(struct netbuff *nb, size_t len)
struct netbuff * create_netbuff()
static size_t netbuff_temp_count
static struct slab_cache * netbuff_cache
static struct netbuff * netbuff_temp[32]
#define NETBUFF_DATA_SIZE
#define NETBUFF_MAX_HEADROOM
void * vxSlabAlloc(struct slab_cache *cache)
void slab_free(struct slab_cache *cache, void *obj)
void vxCreateSlabCache(struct slab_cache **cache, const char *name, const size_t obj_size, size_t alignment, const uintptr_t virt_addr)
void memset(void *ptr, int value, size_t num)