From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Where to find constants for snd_magic_cast() Date: Fri, 22 Mar 2002 16:53:55 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Kasparek Tomas Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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 Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel