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

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

PHYS_TO_KSEG(9r)

Contents


NAME    [Toc]    [Back]

       PHYS_TO_KSEG  -  General: Converts a physical address to a
       kernel-unmapped virtual address

SYNOPSIS    [Toc]    [Back]

       vm_offset_t PHYS_TO_KSEG(
               vm_offset_t addr );

ARGUMENTS    [Toc]    [Back]

       Specifies the physical address to  convert  to  a  kernelunmapped
 virtual address.

DESCRIPTION    [Toc]    [Back]

       The   PHYS_TO_KSEG  routine  converts  a  kernel  physical
       address to a kernel-unmapped virtual address.

EXAMPLE    [Toc]    [Back]

       The following code fragment shows a call to PHYS_TO_KSEG:

       .  .  .

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

       .  .  .

               virt_addr = PHYS_TO_KSEG(phys_addr); [3]

       .  .  .


       Declares a variable to store the virtual address  returned
       by  PHYS_TO_KSEG.  Declares a variable to store the physical
 address. This address might have been obtained from  a
       call  to  KSEG_TO_PHYS.  Calls PHYS_TO_KSEG to convert the
       physical address to a corresponding virtual address.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, PHYS_TO_KSEG returns the  virtual
   address  associated  with  the  specified  physical
       address.

SEE ALSO    [Toc]    [Back]

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



                                                 PHYS_TO_KSEG(9r)
[ Back ]
 Similar pages
Name OS Title
KSEG_TO_PHYS Tru64 General: Converts a kernel-unmapped virtual address to a physical address
svatophys Tru64 General: Converts a system virtual address to a physical address
vtop Tru64 General: Converts any virtual address to a physical address
copy_to_phys Tru64 General: Copies data from a virtual address to a physical address
pmap_extract Tru64 General: Extracts a physical page address
iomap HP-UX physical I/O address mapping
pmap_extract_and_hold FreeBSD map a virtual address to a physical page
pmap_extract FreeBSD map a virtual address to a physical page
pmap_change_wiring FreeBSD change physical wiring for a map or virtual address pair
pmap_mincore FreeBSD determine if a virtual address is resident in physical memory
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service