Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

copy_to_phys(9r) [osf1 man page]

copy_to_phys(9r)														  copy_to_phys(9r)

NAME
copy_to_phys - General: Copies data from a virtual address to a physical address SYNOPSIS
void copy_to_phys( vm_offset_t virt_src, vm_offset_t phys_dest, unsigned int bcount ); ARGUMENTS
Specifies the virtual address of the data to be copied. Specifies the physical address to copy the data to. Specifies the number of bytes to copy. DESCRIPTION
The copy_to_phys routine copies a specified amount of virtually addressed memory to physically addressed memory. The addresses reside only in system memory space and not in the memory space on I/O buses. CAUTIONS
If any overlap exists between virt_src and phys_dest, the copy_to_phys routine panics. RETURN VALUES
None SEE ALSO
Routines: copyin(9r), copyout(9r), io_copyin(9r), io_copyio(9r), io_copyout(9r) copy_to_phys(9r)

Check Out this Related Man Page

copyinstr(9r)															     copyinstr(9r)

NAME
copyinstr - General: Copies a null-terminated string from a user address space to a kernel address space SYNOPSIS
int copyinstr( char *user_src, char *kernel_dest, int maxlength, int *lencopied ); ARGUMENTS
Specifies the address in user space of the null-terminated string to be copied. Specifies the address in kernel 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
The copyinstr routine copies a specified null-terminated string from the unprotected user address space to a specified address in the pro- tected kernel address space. CAUTIONS
If the string being copied is not null terminated, copyinstr copies maxlength bytes into the kernel address space. RETURN VALUES
Upon successful completion, copyinstr returns the value 0 (zero) and the actual length of the string copied to the lencopied argument. Oth- erwise, it returns one of the following error constants defined in /usr/sys/include/sys/errno.h: The address in user space that you speci- fied in the user_src argument cannot be accessed. The length of the string exceeds the maxlength value. SEE ALSO
Routines: copyoutstr(9r) copyinstr(9r)
Man Page

We Also Found This Discussion For You

1. What is on Your Mind?

Throw my Toys out of the Pram!

Hi Folks, Today hasn't been the best one of my career in IT. I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them. At the... (3 Replies)
Discussion started by: gull04
3 Replies