*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> cr_isaddr (3)              


 cr_isaddr(3)                                                   cr_isaddr(3)

 NAME    [Toc]    [Back]
      cr_isaddr - validate whether physical page number was dumped

 SYNOPSIS    [Toc]    [Back]
      #include <libcrash.h>

      int cr_isaddr(CRASH *crash_cb, uint64_t pagenum, int *avail);

 DESCRIPTION    [Toc]    [Back]
      The cr_isaddr() checks to see if the specified page number, pagenum,
      is present in the open crash dump represented by crash_cb.  It sets
      the Boolean to which avail points to indicate the presence (1) or
      absence (0) of the page.

 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_isaddr(3) tests for the availability of page 256:

           #include <libcrash.h>

           CRASH cr_cb;
           int avail;

           int retval = cr_isaddr(&cr_cb, (uint64_t)256, &avail);

           if (retval >= 0 && avail > 0) {
                /* Read and process page 256 */
           } /* Else ignore pages that are not available */

 AUTHOR    [Toc]    [Back]
      cr_isaddr() was developed by HP.

 SEE ALSO    [Toc]    [Back]
      cr_open(3), cr_read(3), libcrash(5).

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
pmap_protect FreeBSD set physical page protection
pmap_page_protect FreeBSD set physical page protection
pmap_page_exists_quick FreeBSD determine if a page exists in a physical map
pmap_extract FreeBSD map a virtual address to a physical page
pmap_extract_and_hold FreeBSD map a virtual address to a physical page
pmap_enter FreeBSD insert a virtual page into a physical map
pmap_extract Tru64 General: Extracts a physical page address
pmap_set_modify Tru64 General: Sets the modify bits of the specified physical page
pvmove HP-UX move allocated physical extents from one LVM physical volume to other physical volumes
set_current_field FreeBSD set and get form page number
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service