cr_set_node(3)                                               cr_set_node(3)
 NAME    [Toc]    [Back]
      cr_set_node - set node number
 SYNOPSIS    [Toc]    [Back]
      #include <libcrash.h>
      int cr_set_node(CRASH *crash_cb, int node_num, int *old_node_num);
 DESCRIPTION    [Toc]    [Back]
      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    [Toc]    [Back]
      Returns zero for success. Other possible return values are described
      in libcrash(5).
 EXAMPLES    [Toc]    [Back]
      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    [Toc]    [Back]
      cr_set_node() was developed by HP.
 SEE ALSO    [Toc]    [Back]
      cr_open(3), libcrash(5).
 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003 [ Back ] |