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

  man pages->FreeBSD man pages -> pmap_map (9)              
Title
Content
Arch
Section
 

PMAP_MAP(9)

Contents


NAME    [Toc]    [Back]

     pmap_map -- map a physical memory range into kernel virtual address (KVA)
     space

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <vm/vm.h>
     #include <vm/pmap.h>

     vm_offset_t
     pmap_map(vm_offset_t *virt, vm_paddr_t start, vm_paddr_t end, int prot);

DESCRIPTION    [Toc]    [Back]

     The pmap_map() function maps a range of physical addresses into kernel
     virtual address (KVA) space, from start to end, with protection bits
     prot.

     The value passed in *virt is treated as a hint for the virtual address of
     the beginning of the mapping.

IMPLEMENTATION NOTES    [Toc]    [Back]

     The prot argument is currently ignored by machine-dependent implementations.


     Architectures which can support a direct mapped physical to virtual
     region can return the appropriate address within that region, leaving
     *virt unchanged.

RETURN VALUES    [Toc]    [Back]

     The pmap_map() function returns the virtual address of the beginning of
     the mapping, if the mapping was successfully made; *virt will also be
     updated with the first usable address after the mapped region.

     If the function is unsuccessful, NULL is returned.

SEE ALSO    [Toc]    [Back]

      
      
     pmap(9)

AUTHORS    [Toc]    [Back]

     This manual page was written by Bruce M Simpson <[email protected]>.


				 July 21, 2003
[ Back ]
 Similar pages
Name OS Title
KSEG_TO_PHYS Tru64 General: Converts a kernel-unmapped virtual address to a physical address
vm_map FreeBSD virtual address space portion of virtual memory subsystem
pmap_mincore FreeBSD determine if a virtual address is resident in physical memory
pmap_growkernel FreeBSD grow the kernel virtual address (KVA) space
mlockall HP-UX lock a process virtual address space in memory
mlock HP-UX lock a segment of the process virtual address space in memory
vm_map_remove FreeBSD remove a virtual address range from a map
copy_to_phys Tru64 General: Copies data from a virtual address to a physical address
svatophys Tru64 General: Converts a system virtual address to a physical address
copyinstr Tru64 General: Copies a null-terminated string from a user address space to a kernel address space
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service