|
|
Subscribe / Log in / New account

typesafe callbacks

From:  Rusty Russell <rusty@rustcorp.com.au>
To:  Linus Torvalds <torvalds@linux-foundation.org>
Subject:  [PATCH 0/4] typesafe callbacks
Date:  Fri, 25 Jul 2008 12:13:17 +1000
Message-ID:  <200807251213.17773.rusty@rustcorp.com.au>
Cc:  linux-kernel@vger.kernel.org, Al Viro <viro@zeniv.linux.org.uk>
Archive‑link:  Article

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.


Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds