On Sun, 2002-09-29 at 20:51, Jaroslav Kysela wrote: > + sgbuf = snd_magic_cast(snd_pcm_sgbuf_t, substream->dma_private, return -EINVAL); hummmm magic casts?? why ? > + ptr = snd_malloc_pci_pages(sgbuf->pci, PAGE_SIZE, &addr); what is wrong with the PCI DMA API that makes ALSA wants a private interface/implementation ? > EXPORT_SYMBOL(snd_wrapper_kmalloc); > EXPORT_SYMBOL(snd_wrapper_kfree); > +EXPORT_SYMBOL(snd_wrapper_vmalloc); > +EXPORT_SYMBOL(snd_wrapper_vfree); why do you need a wrapper for vfree?