public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] typesafe callbacks
@ 2008-07-25  2:13 Rusty Russell
  2008-07-25  2:14 ` [PATCH 1/4] typesafe: cast_if_type: allow macros functions which take more than one type Rusty Russell
  0 siblings, 1 reply; 5+ messages in thread
From: Rusty Russell @ 2008-07-25  2:13 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Al Viro

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-25  2:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25  2:13 [PATCH 0/4] typesafe callbacks Rusty Russell
2008-07-25  2:14 ` [PATCH 1/4] typesafe: cast_if_type: allow macros functions which take more than one type Rusty Russell
2008-07-25  2:16   ` [PATCH 2/4] typesafe: typesafe_cb: wrappers for typesafe callbacks Rusty Russell
2008-07-25  2:17     ` [PATCH 3/4] typesafe: kthread_create and kthread_run Rusty Russell
2008-07-25  2:19       ` [PATCH 4/4] typesafe: TIMER_INITIALIZER and setup_timer Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox