Subject: Re: amap memory allocation
To: None <tech-kern@netbsd.org>
From: Jed Davis <jdev@panix.com>
List: tech-kern
Date: 06/13/2006 19:55:23
YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> writes:

> solaris vmem_xalloc has constraint arguments, including alignment,
> doesn't it?  (no idea about its efficiency or implementation, tho.)

The paper linked to earlier in this thread says so:

} We also provide a vmem_xalloc() interface that can specify common
} allocation constraints: alignment, phase (offset from the
} alignment), address range, and boundary-crossing restrictions
} (e.g. don't cross a page boundary).

Now, implementation... well, there's the OpenSolaris source.

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))