public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: extending callbacks?
Date: Wed, 20 Mar 2002 10:32:45 -0800	[thread overview]
Message-ID: <3C98D5CD.4000000@zytor.com> (raw)
In-Reply-To: <Pine.GSO.4.44.0203191111320.20995-100000@speedy>	<a78gd7$jk$1@cesium.transmeta.com> <m1d6xzw7xf.fsf@frodo.biederman.org>

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



  reply	other threads:[~2002-03-20 18:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19 10:23 extending callbacks? Matthias Scheidegger
2002-03-19 23:08 ` H. Peter Anvin
2002-03-19 19:32   ` Andreas Dilger
2002-03-20 15:55   ` Eric W. Biederman
2002-03-20 18:32     ` H. Peter Anvin [this message]
2002-03-20 15:59 ` Eric W. Biederman
2002-03-20 21:02   ` Matthias Scheidegger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C98D5CD.4000000@zytor.com \
    --to=hpa@zytor.com \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox