diff options
Diffstat (limited to 'docs/verbs.7.scd')
| -rw-r--r-- | docs/verbs.7.scd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/verbs.7.scd b/docs/verbs.7.scd index 1598342..b529293 100644 --- a/docs/verbs.7.scd +++ b/docs/verbs.7.scd @@ -14,7 +14,9 @@ The *init* verb initializes a structure; that is, upon success, it puts the obje The initialization function has the following signature: +``` [int] x_init(X*, ...) +``` where the return value can be used to communicate errors. See relevant documentation for implementation's meanings. @@ -26,7 +28,9 @@ The *drop* verb is the opposite of the init verb: it puts the object in a state The drop operation has the following signature: +``` [int] x_drop(X*, ...) +``` ## Install @@ -34,6 +38,8 @@ The *install* verb places and initializes an object at a specified location *add The install operation has the following signature: +``` X *x_install(void *addr, ...) +``` A notable example of a structure that gets to be installed is the MemFramer (mem/framer.h). This frame allocator is notably used for managing physical memory. Since it can be used at times when heap allocation is not yet available, the structure can be installed at the beginning of free regions.
\ No newline at end of file |
