copyoutstr man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

copyoutstr(9r)							copyoutstr(9r)

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

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

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

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

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

       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 spec‐
       ified in the kernel_src argument cannot be accessed.  The length of the
       string exceeds the maxlength value.

       Routines: copyinstr(9r)


List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net