MyOS Kernel
address_spaces.h File Reference

Go to the source code of this file.

Functions

void address_spaces_copy_data (void *cr3, void *data, uint32_t size, void *virt_addr)
 
void * address_spaces_put_data (void *cr3, void *data, uint32_t size)
 

Function Documentation

◆ address_spaces_copy_data()

void address_spaces_copy_data ( void *  cr3,
void *  data,
uint32_t  size,
void *  virt_addr 
)

Copy data into an address space at a specified virtual address

Parameters
cr3The adress space to copy data to.
dataThe data to copy
sizeThe size of the data
virt_addrThe address to copy the data to in the address space

◆ address_spaces_put_data()

void* address_spaces_put_data ( void *  cr3,
void *  data,
uint32_t  size 
)

Put data into an address space at an unknown virtual address

Parameters
cr3The adress space to copy data to.
dataThe data to copy
sizeThe size of the data
Returns
The address that the data was copied to.