diff options
Diffstat (limited to 'support/next_to_fault.h')
| -rw-r--r-- | support/next_to_fault.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/support/next_to_fault.h b/support/next_to_fault.h index 7112cc4c65..cec4b97332 100644 --- a/support/next_to_fault.h +++ b/support/next_to_fault.h @@ -41,6 +41,11 @@ struct support_next_to_fault fault). */ struct support_next_to_fault support_next_to_fault_allocate (size_t size); +/* Allocate a buffer of SIZE bytes just *after* a page which is mapped + with PROT_NONE (so that under-running the buffer will cause a + fault). */ +struct support_next_to_fault support_next_to_fault_allocate_before (size_t size); + /* Deallocate the memory region allocated by next_to_fault_allocate. */ void support_next_to_fault_free (struct support_next_to_fault *); |
