At Fri, 22 Mar 2002 15:51:31 +0100 (CET),
Kasparek Tomas wrote:
> 
> Hi all,
> 
> Please, I tried to enable debugging for alsa-driver. For this I need to
> add my own constants for snd_magic_cast(). How are these constants
> construct and how this magic function works?
 
you can define the constant as you like, although a kind of rule can
be easily found by looking through the numbers in sndmagic.h :)
just add your new type and increment the number.

magic functions check whether the pointer is valid, i.e. really
allocated via snd_magic_kmalloc().  it's good for a void pointer,
which type can not be known at the compile time.

please note that the buffer allocated via snd_magic_kmalloc must be
released via snd_magic_kfree(), not usual kfree().

> What is actual status of kernel API documentation. Sources are commented
> poorly and there's no notice about kernel API documentation on web.

no, there is none, so far.

> There are rummors about some information unofficialy released - could you
> give me the direction, where to find these?

i'd like to know if really there is one ;)


ciao,

Takashi

_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to