Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
util_mem.h File Reference
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  snd_util_memblk
 
struct  snd_util_memhdr
 

Macros

#define snd_util_memblk_argptr(blk)   (void*)((char*)(blk) + sizeof(struct snd_util_memblk))
 

Functions

struct snd_util_memhdrsnd_util_memhdr_new (int memsize)
 
void snd_util_memhdr_free (struct snd_util_memhdr *hdr)
 
struct snd_util_memblksnd_util_mem_alloc (struct snd_util_memhdr *hdr, int size)
 
int snd_util_mem_free (struct snd_util_memhdr *hdr, struct snd_util_memblk *blk)
 
int snd_util_mem_avail (struct snd_util_memhdr *hdr)
 
struct snd_util_memblk__snd_util_mem_alloc (struct snd_util_memhdr *hdr, int size)
 
void __snd_util_mem_free (struct snd_util_memhdr *hdr, struct snd_util_memblk *blk)
 
struct snd_util_memblk__snd_util_memblk_new (struct snd_util_memhdr *hdr, unsigned int units, struct list_head *prev)
 

Macro Definition Documentation

#define snd_util_memblk_argptr (   blk)    (void*)((char*)(blk) + sizeof(struct snd_util_memblk))

Definition at line 34 of file util_mem.h.

Function Documentation

struct snd_util_memblk* __snd_util_mem_alloc ( struct snd_util_memhdr hdr,
int  size 
)
read

Definition at line 73 of file util_mem.c.

void __snd_util_mem_free ( struct snd_util_memhdr hdr,
struct snd_util_memblk blk 
)

Definition at line 153 of file util_mem.c.

struct snd_util_memblk* __snd_util_memblk_new ( struct snd_util_memhdr hdr,
unsigned int  units,
struct list_head prev 
)
read

Definition at line 110 of file util_mem.c.

struct snd_util_memblk* snd_util_mem_alloc ( struct snd_util_memhdr hdr,
int  size 
)
read

Definition at line 138 of file util_mem.c.

int snd_util_mem_avail ( struct snd_util_memhdr hdr)

Definition at line 178 of file util_mem.c.

int snd_util_mem_free ( struct snd_util_memhdr hdr,
struct snd_util_memblk blk 
)

Definition at line 164 of file util_mem.c.

void snd_util_memhdr_free ( struct snd_util_memhdr hdr)

Definition at line 55 of file util_mem.c.

struct snd_util_memhdr* snd_util_memhdr_new ( int  memsize)
read

Definition at line 38 of file util_mem.c.