HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
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 Release 11i: December 2000 1 Section 397
___
___