Messages in this thread | | | Date | Wed, 20 Mar 2002 10:32:45 -0800 | From | "H. Peter Anvin" <> | Subject | Re: extending callbacks? |
| |
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/
| |