public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Xin Zhao <uszhaoxin@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Is it possible to get the return address in a system call function?
Date: Tue, 2 Aug 2005 02:57:47 -0400	[thread overview]
Message-ID: <4ae3c14050801235711055125@mail.gmail.com> (raw)

Let me clarify with an example: 

test.c:

******
open("abc.txt", O_RDONLY);
i ++;

Apparently, after the system call  "open" in the kernel, the system
will return to the instruction "i++".  My question is: can we find out
the instruction pointer in  sys_open? If so, how?

Thanks!

xin

                 reply	other threads:[~2005-08-02  6:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4ae3c14050801235711055125@mail.gmail.com \
    --to=uszhaoxin@gmail.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