diff options
author | alc <alc@FreeBSD.org> | 2013-02-26 00:18:50 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2013-02-26 00:18:50 +0000 |
commit | 26f238c055fe25a1ed1e6d7aa721bfcf620f23ba (patch) | |
tree | 5b97292a70cc94ff26bd9ea123cd43cbcb77695e | |
parent | 343c9f6f19b37c0b168ae9b297a663b7df466223 (diff) | |
download | FreeBSD-src-26f238c055fe25a1ed1e6d7aa721bfcf620f23ba.zip FreeBSD-src-26f238c055fe25a1ed1e6d7aa721bfcf620f23ba.tar.gz |
Revise the comment describing uma_zone_reserve_kva().
Sponsored by: EMC / Isilon Storage Division
Reviewed by: attilio
-rw-r--r-- | sys/vm/uma.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/vm/uma.h b/sys/vm/uma.h index 549b1b3..f3022d2 100644 --- a/sys/vm/uma.h +++ b/sys/vm/uma.h @@ -432,19 +432,21 @@ void uma_reclaim(void); void uma_set_align(int align); /* - * Switches the backing object of a zone to VM_ALLOC_NOOBJ. + * Reserves the maximum KVA space required by the zone and configures the zone + * to use a VM_ALLOC_NOOBJ-based backend allocator. * * Arguments: * zone The zone to update. - * nitems The number of items previewed to be allocated. + * nitems The upper limit on the number of items that can be allocated. * * Returns: - * 0 if kva space can not be allocated + * 0 if KVA space can not be allocated * 1 if successful * * Discussion: - * The size will limit the amount of memory allocated to this zone. - * + * When the machine supports a direct map and the zone's items are smaller + * than a page, the zone will use the direct map instead of allocating KVA + * space. */ int uma_zone_reserve_kva(uma_zone_t zone, int nitems); |