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

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

copyoutstr(9r)

Contents


NAME    [Toc]    [Back]

       copyoutstr - General: Copies a null-terminated string from
       a kernel address space to a user address space

SYNOPSIS    [Toc]    [Back]

       int copyoutstr(
               char *kernel_src,
               char *user_dest,
               int maxlength,
               int *lencopied );

ARGUMENTS    [Toc]    [Back]

       Specifies the address in kernel space of  the  null-terminated
  string to be copied.  Specifies the address in user
       space to copy the null-terminated  string  to.   Specifies
       the maximum number of bytes to copy.  Specifies the actual
       length of the string copied.

DESCRIPTION    [Toc]    [Back]

       The copyoutstr routine copies a specified  null-terminated
       string  from  the  protected  kernel  address space to the
       unprotected user address space.

CAUTIONS    [Toc]    [Back]

       If the string being copied is not  null-terminated,  copyoutstr
 copies maxlength bytes into the user address space.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, copyoutstr returns the value 0
       (zero)  and  the  actual  length  of  the string copied in
       lencopied. Otherwise, it can return the following  errors:
       The address in kernel space that you specified in the kernel_src
 argument cannot be accessed.  The  length  of  the
       string exceeds the maxlength value.

SEE ALSO    [Toc]    [Back]

      
      
       Routines: copyinstr(9r)



                                                   copyoutstr(9r)
[ Back ]
 Similar pages
Name OS Title
copyinstr Tru64 General: Copies a null-terminated string from a user address space to a kernel address space
copyout Tru64 General: Copies data from a kernel address space to a user address space
copyin Tru64 General: Copies data from a user address space to a kernel address space
strcpy Tru64 General: Copies a null-terminated character string
strncpy Tru64 General: Copies a null-terminated character string with a specified limit
copystr Tru64 General: Copies a null-terminated character string with a specified limit
suword Tru64 General: Writes a word into user address space
fubyte Tru64 General: Returns a byte from user address space
subyte Tru64 General: Writes a byte into user address space
fuibyte Tru64 General: Returns a byte from user instruction address space
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service