HP-UX Reference (11i v2 04/09) - 3 Library Functions A-M (vol 6)

c
cr_set_node(3) cr_set_node(3)
NAME
cr_set_node - set node number
SYNOPSIS
#include <libcrash.h>
int cr_set_node(CRASH *crash_cb, int node_num, int *old_node_num);
DESCRIPTION
The cr_set_node()
function expects the physical node number passed in node_num. The node
number will be used by
cr_read() and
cr_isaddr() to access the node private memory contained on
a particular node. This function is only valid for ccnumadir (version 4) dumps. If the old_node_num
argument is non-NULL, the address referenced by old_node_num
will be set to the previous node
number. If
old_node_num is NULL, the previous node number will not be returned.
RETURN VALUE
Returns zero for success. Other possible return values are described in libcrash (5).
EXAMPLES
Assuming a process opened a crash dump, the following call to
cr_set_node() sets the physical node
number to zero.
#include <libcrash.h>
CRASH *cr_cb;
int old_node;
int retval;
retval = cr_set_node(cr_cb, 0, &old_node);
AUTHOR
cr_set_node() was developed by HP.
SEE ALSO
cr_open(3), libcrash(5).
HP-UX 11i Version 2: September 2004 1 Hewlett-Packard Company Section 3141