1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 20:51:17 +00:00

Documentation is good. Write documentation.

This commit is contained in:
Peter Evans 2017-12-12 15:10:42 -06:00
parent 060b7000de
commit 577e92de9e

View File

@ -171,6 +171,10 @@ vm_segment_copy(vm_segment *dest,
return OK;
}
/*
* Set the read mapper for a given address. We'll use this function
* instead of the normal logic on a get for that address.
*/
int
vm_segment_read_map(vm_segment *segment,
size_t addr,
@ -184,6 +188,10 @@ vm_segment_read_map(vm_segment *segment,
return OK;
}
/*
* Here we set the map function for a given address to use on writes,
* which is to say, when we use the `vm_segment_set()` function.
*/
int
vm_segment_write_map(vm_segment *segment,
size_t addr,