Go to the documentation of this file.
23 #include <linux/slab.h>
24 #include <linux/module.h>
29 MODULE_DESCRIPTION(
"Generic memory management routines for soundcard memory allocation");
32 #define get_memblk(p) list_entry(p, struct snd_util_memblk, list)
47 INIT_LIST_HEAD(&hdr->
block);
76 unsigned int units, prev_offset;
86 if (units > hdr->
size)
93 if (blk->
offset - prev_offset >= units)
97 if (hdr->
size - prev_offset < units)
120 if (prev == &hdr->
block)
127 list_add(&blk->
list, prev);
201 static int __init alsa_util_mem_init(
void)
206 static void __exit alsa_util_mem_exit(
void)