[PATCH 0/6] typesafe callbacks

From: Rusty Russell
Date: Sun Apr 20 2008 - 18:59:30 EST


The idea is to create a general typesafe callback mechanism which doesn't
break compile on existing code and doesn't allow any unsafe callback types.

Al had a very long timer conversion series followed by a different mechanism,
and that just covered timers; unfortunately that technique provides
insufficient typechecking for the general case (eg. int return types and
callback functions which take integer args as well as the data arg).

Note that these typechecks end up being *too* strict in some cases,
disallowing some potentially valid cases. But since you can still use the
current via-void* method, these corner cases lose nothing.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/