<br><font size=2 face="sans-serif">Gerhard,</font>
<br>
<br><font size=2 face="sans-serif">I think you meant to actually say "update"
instead of "query". Is this true?</font>
<br><font size=2 face="sans-serif"><br>
"</font><tt><font size=2>The functionality of spe_callback_handler_update()
can be achieved by<br>
using spe_callback_handler_register() in update mode."</font></tt>
<br>
<br><font size=2 face="sans-serif">Sincerely,</font>
<br><font size=2 face="sans-serif">Brian Watt</font>
<br>
<br><tt><font size=2>cbe-oss-dev-bounces+bwatt=us.ibm.com@ozlabs.org wrote
on 07/09/2007 09:16:08 AM:<br>
<br>
> <br>
> This patch removes a function which has never been documented and
<br>
> should therefore be not in the API layer.<br>
> The functionality of spe_callback_handler_query() can be achieved
by<br>
> using spe_callback_handler_register() in update mode.<br>
> <br>
> Signed-off-by: Gerhard Stenzel <stenzel at de.ibm.com><br>
> <br>
> ===================================================================<br>
> Index: libspe2/libspe2.c<br>
> ===================================================================<br>
> --- libspe2/libspe2.c (revision 71)<br>
> +++ libspe2/libspe2.c (working copy)<br>
> @@ -464,14 +464,6 @@ void * spe_callback_handler_query(unsign<br>
> }<br>
> <br>
> /*<br>
> - * spe_callback_handler_update<br>
> - */<br>
> -int spe_callback_handler_update(void *handler, unsigned int callnum)
<br>
> -{<br>
> - return _base_spe_callback_handler_update(handler, callnum);<br>
> -}<br>
> -<br>
> -/*<br>
> * spe_info_get<br>
> */<br>
> int spe_cpu_info_get(int info_requested, int cpu_node) <br>
> Index: libspe2/spebase/spebase.h<br>
> ===================================================================<br>
> --- libspe2/spebase/spebase.h (revision 71)<br>
> +++ libspe2/spebase/spebase.h (working copy)<br>
> @@ -556,12 +556,6 @@ extern int _base_spe_callback_handler_de<br>
> */<br>
> extern void * _base_spe_callback_handler_query(unsigned int
callnum );<br>
> <br>
> -/*<br>
> - * spe_callback_handler_update<br>
> - */<br>
> -extern int _base_spe_callback_handler_update(void *handler, <br>
> unsigned int callnum);<br>
> -<br>
> -<br>
> /**<br>
> * _base_spe_stop_reason_get<br>
> * <br>
> Index: libspe2/spebase/lib_builtin.c<br>
> ===================================================================<br>
> --- libspe2/spebase/lib_builtin.c (revision 71)<br>
> +++ libspe2/spebase/lib_builtin.c (working copy)<br>
> @@ -120,22 +120,6 @@ void * _base_spe_callback_handler_query(<br>
> return handlers[callnum];<br>
> }<br>
> <br>
> -int _base_spe_callback_handler_update(void *handler, unsigned int
callnum)<br>
> -{<br>
> - errno = 0;<br>
> - if (callnum > MAX_CALLNUM) {<br>
> - errno = EINVAL;<br>
> - return -1;<br>
> - }<br>
> - if (handlers[callnum] == NULL) {<br>
> - errno = ESRCH;<br>
> - return -1;<br>
> - }<br>
> - <br>
> - handlers[callnum] = handler;<br>
> - return 0;<br>
> -}<br>
> -<br>
> int handle_library_callback(struct spe_context *spe, int callnum,<br>
> unsigned int npc)<br>
> {<br>
> Index: libspe2/libspe2.h<br>
> ===================================================================<br>
> --- libspe2/libspe2.h (revision 71)<br>
> +++ libspe2/libspe2.h (working copy)<br>
> @@ -207,11 +207,6 @@ int spe_callback_handler_deregister (uns<br>
> void * spe_callback_handler_query(unsigned int callnum);<br>
> <br>
> /*<br>
> - * spe_callback_handler_update<br>
> - */<br>
> -int spe_callback_handler_update(void *handler, unsigned int callnum);<br>
> -<br>
> -/*<br>
> * spe_info_get<br>
> */<br>
> int spe_cpu_info_get(int info_requested, int cpu_node); <br>
> <br>
> ===================================================================<br>
> <br>
> Best regards, <br>
> <br>
> Gerhard Stenzel, Linux on Cell Development, LTC<br>
> -------------------------------------------------------------------------------------<br>
> IBM Deutschland Entwicklung GmbH<br>
> Vorsitzender des Aufsichtsrats: Martin Jetter | Geschaeftsfuehrung:
<br>
> Herbert Kircher<br>
> Sitz der Gesellschaft: Boeblingen | Registergericht: Amtsgericht <br>
> Stuttgart, HRB 243294<br>
> _______________________________________________<br>
> cbe-oss-dev mailing list<br>
> cbe-oss-dev@ozlabs.org<br>
> https://ozlabs.org/mailman/listinfo/cbe-oss-dev<br>
</font></tt>