Re: extending callbacks?

From: H. Peter Anvin (hpa@zytor.com)
Date: Wed Mar 20 2002 - 13:32:45 EST


Eric W. Biederman wrote:
>
> ???
>
> static void *my_fixed_arg;
> int temp_cb(int u)
> {
> return real_cb(u, my_fixed_arg);
> }
>
> Generally works. The variant that builds that code on the fly for
> create_callback is a little more interesting of course.
>

Well, of course you can do anything with a thunk. I thought the
question was if you can do the call *directly*.

        -hpa

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



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:22 EST