mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-30 08:51:53 +00:00
Documentation is good. Write documentation.
This commit is contained in:
parent
060b7000de
commit
577e92de9e
@ -171,6 +171,10 @@ vm_segment_copy(vm_segment *dest,
|
|||||||
return OK;
|
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
|
int
|
||||||
vm_segment_read_map(vm_segment *segment,
|
vm_segment_read_map(vm_segment *segment,
|
||||||
size_t addr,
|
size_t addr,
|
||||||
@ -184,6 +188,10 @@ vm_segment_read_map(vm_segment *segment,
|
|||||||
return OK;
|
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
|
int
|
||||||
vm_segment_write_map(vm_segment *segment,
|
vm_segment_write_map(vm_segment *segment,
|
||||||
size_t addr,
|
size_t addr,
|
||||||
|
Loading…
Reference in New Issue
Block a user