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

Go to the source code of this file.

Macros

#define get_memblk(p)   list_entry(p, struct snd_util_memblk, list)
 

Functions

 MODULE_AUTHOR ("Takashi Iwai")
 
 MODULE_DESCRIPTION ("Generic memory management routines for soundcard memory allocation")
 
 MODULE_LICENSE ("GPL")
 
struct snd_util_memhdrsnd_util_memhdr_new (int memsize)
 
void snd_util_memhdr_free (struct snd_util_memhdr *hdr)
 
struct snd_util_memblk__snd_util_mem_alloc (struct snd_util_memhdr *hdr, int size)
 
struct snd_util_memblk__snd_util_memblk_new (struct snd_util_memhdr *hdr, unsigned int units, struct list_head *prev)
 
struct snd_util_memblksnd_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)
 
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)
 
 EXPORT_SYMBOL (snd_util_memhdr_new)
 
 EXPORT_SYMBOL (snd_util_memhdr_free)
 
 EXPORT_SYMBOL (snd_util_mem_alloc)
 
 EXPORT_SYMBOL (snd_util_mem_free)
 
 EXPORT_SYMBOL (snd_util_mem_avail)
 
 EXPORT_SYMBOL (__snd_util_mem_alloc)
 
 EXPORT_SYMBOL (__snd_util_mem_free)
 
 EXPORT_SYMBOL (__snd_util_memblk_new)
 

Macro Definition Documentation

#define get_memblk (   p)    list_entry(p, struct snd_util_memblk, list)

Definition at line 32 of file util_mem.c.

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.

EXPORT_SYMBOL ( snd_util_memhdr_new  )
EXPORT_SYMBOL ( snd_util_memhdr_free  )
EXPORT_SYMBOL ( snd_util_mem_alloc  )
EXPORT_SYMBOL ( snd_util_mem_free  )
EXPORT_SYMBOL ( snd_util_mem_avail  )
EXPORT_SYMBOL ( __snd_util_mem_alloc  )
EXPORT_SYMBOL ( __snd_util_mem_free  )
EXPORT_SYMBOL ( __snd_util_memblk_new  )
MODULE_AUTHOR ( "Takashi Iwai"  )
MODULE_DESCRIPTION ( "Generic memory management routines for soundcard memory allocation"  )
MODULE_LICENSE ( "GPL"  )
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.