 f78d8e74fd
			
		
	
	
		f78d8e74fd
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			12 lines
		
	
	
		
			184 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			184 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
 | |
| #include <stddef.h>
 | |
| #include <minix/u64.h>
 | |
| 
 | |
| #include "proto.h"
 | |
| #include "sanitycheck.h"
 | |
| #include "yielded.h"
 | |
| #include "yieldedavl_defs.h"
 | |
| #include "cavl_if.h"
 | |
| #include "cavl_impl.h"
 | |
| 
 |