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

  man pages->Tru64 Unix man pages -> IS_KSEG_VA (9r)              
Title
Content
Arch
Section
 

IS_KSEG_VA(9r)

Contents


NAME    [Toc]    [Back]

       IS_KSEG_VA, IS_SEG0_VA, IS_SEG1_VA - General: Determine if
       the specified address is located  in  the  kernel-unmapped
       address space, the user-mapped address space, and the kernel-mapped
 address space.

SYNOPSIS    [Toc]    [Back]

       void IS_KSEG_VA(
               unsigned long addr ); void IS_SEG0_VA(
               unsigned long addr ); void IS_SEG1_VA(
               unsigned long addr );

ARGUMENTS    [Toc]    [Back]

       Specifies the virtual address.

DESCRIPTION    [Toc]    [Back]

       The IS_KSEG_VA routine determines if the specified address
       is  located  in  the  kernel-unmapped  address  space. The
       IS_SEG0_VA routine determines if the specified address  is
       located  in  the user-mapped address space. The IS_SEG1_VA
       routine determines if the specified address is located  in
       the kernel-mapped address space.

RETURN VALUES    [Toc]    [Back]

       None

EXAMPLE    [Toc]    [Back]

       The following code fragment shows a call to IS_KSEG_VA:

       .  .  .

       caddr_t virt_addr;  [1] unsigned phys_addr; [2]

       .  .  .

           if(IS_KSEG_VA(virt_addr)) { [3]
               phys_addr = KSEG_TO_PHYS(virt_addr); [4]

       .  .  .


       Declares  a  variable  to  store the user buffer's virtual
       address.   Declares  a  variable  to  store  the  physical
       address   returned   by   KSEG_TO_PHYS.    Before  calling
       KSEG_TO_PHYS, calls IS_KSEG_VA to determine if the virtual
       address is from the kernel-unmapped address space.  If the
       virtual address is from the kernel-unmapped address space,
       then calls KSEG_TO_PHYS to convert the address to a corresponding
 physical address.

SEE ALSO    [Toc]    [Back]

      
      
       Routines: KSEG_TO_PHYS(9r), PHYS_TO_KSEG(9r)



                                                   IS_KSEG_VA(9r)
[ Back ]
 Similar pages
Name OS Title
getabi IRIX determine which ABI to use
vlisstreamused IRIX determine if VL stream is used
gss_test_oid_set_member Tru64 Determine if an OID is a member of a set.
ExtUtils::Liblist IRIX determine libraries to use and how to use them
glistexture IRIX determine if a name corresponds to a texture
access HP-UX determine accessibility of a file
glIsTexture Tru64 determine if a name corresponds to a texture
glistextureext IRIX determine if a name corresponds to a texture
file HP-UX determine file type
katype IRIX determine file type
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service