origin(3)

NAME
origin() - determine how the current function was called

SYNOPSIS
int origin();

DESCRIPTION
Returns an integer specifying how the current function was called. Current values are 1 for the driver (heart_beat, call_out, etc), 2 for a local function call, and 4 for a call_other().

SEE ALSO
previous_object(3).