Skip to content

typesafe callbacks

Rusty Russell lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4typesafe: cast_if_type: allow macros functions which take more than one type.include/linux/compiler-gcc.h include/linux/compiler-intel.h+20 -00 replies
2/4typesafe: typesafe_cb: wrappers for typesafe callbacks.include/linux/kernel.h+35 -00 replies
3/4typesafe: kthread_create and kthread_runinclude/linux/kthread.h kernel/kthread.c+30 -270 replies
4/4typesafe: TIMER_INITIALIZER and setup_timerinclude/linux/timer.h+23 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] typesafe callbacks

It's possible to portably make callbacks typesafe, as well as taking the existing void * arg. This makes the callers more readable and more typesafe.

Done in a way that doesn't break non-gcc: they just don't get a warning.

Been in linux-next for about two full cycles now, and I really want to start using this in my own code.

Thanks,
Rusty.