unw_is_signal_frame(3)

unw_is_signal_frame3

Usage

#include <libunwind.h>

int unw_is_signal_frame(unw_cursor_t *cp);

Overview

The unw_is_signal_frame() routine returns a positive value if the current frame identified by cp is a signal frame, also known as a signal trampoline, and a value of 0 otherwise. For the purpose of this discussion, a signal frame is a frame that was created in response to a potentially asynchronous interruption. For UNIX and UNIX-like platforms, such frames are normally created by the kernel when delivering a signal. In a kernel environment, a signal frame might, for example, correspond to a frame created in response to a device interrupt.

Signal frames are somewhat unusual because the asynchronous nature of the events that create them require storing the contents of registers that are normally treated as scratch (``caller-saved'') registers.

Return value

On successful completion, unw_is_signal_frame() returns a positive value if the current frame is a signal frame, or 0 if it is not. Otherwise, a negative value of one of the error codes below is returned.

Thread and signal safety

unw_is_signal_frame() is thread safe as well as safe to use from a signal handler.

Errors

UNW_ENOINFO

Libunwind is unable to determine whether or not the current frame is a signal frame.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0–12
  2. Arch

Author

David Mosberger-Tang
Email: [email protected]
WWW: http://www.nongnu.org/libunwind/.

From libunwind 1.8.3-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.