Query: copyoutstr
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
copyoutstr(9r) copyoutstr(9r)NAMEcopyoutstr - General: Copies a null-terminated string from a kernel address space to a user address spaceSYNOPSISint copyoutstr( char *kernel_src, char *user_dest, int maxlength, int *lencopied );ARGUMENTSSpecifies 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.DESCRIPTIONThe copyoutstr routine copies a specified null-terminated string from the protected kernel address space to the unprotected user address space.CAUTIONSIf the string being copied is not null-terminated, copyoutstr copies maxlength bytes into the user address space.RETURN VALUESUpon 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 ALSORoutines: copyinstr(9r) copyoutstr(9r)
Related Man Pages |
---|
copyinstr(9r) - osf1 |
copyin(9) - netbsd |
copyout(9) - netbsd |
copystr(9) - netbsd |
ioctl_copyout(9) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Internet Explorer for UNIX (Mainsoft specific) |
How to Change Uname output? |