A new call to vm lets processes yield a part of their memory to vm, together with an id, getting newly allocated memory in return. vm is allowed to forget about it if it runs out of memory. processes can ask for it back using the same id. (These two operations are normally combined in a single call.) It can be used as a as-big-as-memory-will-allow block cache for filesystems, which is how mfs now uses it.
15 lines
340 B
C
15 lines
340 B
C
#undef AVL_UNIQUE
|
|
#undef AVL_HANDLE
|
|
#undef AVL_KEY
|
|
#undef AVL_MAX_DEPTH
|
|
#undef AVL_NULL
|
|
#undef AVL_GET_LESS
|
|
#undef AVL_GET_GREATER
|
|
#undef AVL_SET_LESS
|
|
#undef AVL_SET_GREATER
|
|
#undef AVL_GET_BALANCE_FACTOR
|
|
#undef AVL_SET_BALANCE_FACTOR
|
|
#undef AVL_SET_ROOT
|
|
#undef AVL_COMPARE_KEY_KEY
|
|
#undef AVL_COMPARE_KEY_NODE
|
|
#undef AVL_COMPARE_NODE_NODE
|