MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel VM Library Functions                       kvmkread(3KVM)



NAME
     kvmkread, kvmkwrite, kvmuread, kvmuwrite - copy data  to
     or from a kernel image or running system

SYNOPSIS
     cc [ flag... ] file... -lkvm [ library...]
     #include 

     ssizet kvmkread(kvmt *kd, uintptrt addr, void *buf, sizet nbytes);


     ssizet kvmkwrite(kvmt *kd, uintptrt addr, void *buf, sizet nbytes);


     ssizet kvmuread(kvmt *kd, uintptrt addr, void *buf, sizet nbytes);


     ssizet kvmuwrite(kvmt *kd, uintptrt addr, void *buf, sizet nbytes);


DESCRIPTION
     The kvmkread() function  transfers  data  from  the  kernel
     address  space  to  the address space of the process. nbytes
     bytes of data are copied from  the  kernel  virtual  address
     given by addr to the buffer pointed to by buf.


     The kvmkwrite() function is like kvmkread(),  except  that
     the direction of the transfer is reversed. To use this func-
     tion, the kvmopen(3KVM) call that returned   kd  must  have
     specified write access.


     The kvmuread() function transfers  data  from  the  address
     space   of  the  processes  specified  in  the  most  recent
     kvmgetu(3KVM) call. nbytes bytes of data  are  copied  from
     the user virtual address given by addr to the buffer pointed
     to by buf.


     The kvmuwrite() function is like kvmuread(),  except  that
     the direction of the transfer is reversed. To use this func-
     tion, the kvmopen(3KVM) call that  returned  kd  must  have
     specified  write  access.  The  address  is  resolved in the
     address space of the process specified in  the  most  recent
     kvmgetu(3KVM) call.

RETURN VALUES
     On success, these functions return the number of bytes actu-
     ally transferred. On failure, they return -1.





SunOS 5.11           Last change: 2 May 2002                    1






Kernel VM Library Functions                       kvmkread(3KVM)



ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Stable                      
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     kvmgetu(3KVM),  kvmnlist(3KVM),   kvmopen(3KVM),   attri-
     butes(5)





































SunOS 5.11           Last change: 2 May 2002                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™