Date: Tue, 26 Feb 2013 00:18:50 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r247290 - user/attilio/vmc-playground/sys/vm Message-ID: <201302260018.r1Q0Io8o080357@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Tue Feb 26 00:18:50 2013 New Revision: 247290 URL: http://svnweb.freebsd.org/changeset/base/247290 Log: Revise the comment describing uma_zone_reserve_kva(). Sponsored by: EMC / Isilon Storage Division Reviewed by: attilio Modified: user/attilio/vmc-playground/sys/vm/uma.h Modified: user/attilio/vmc-playground/sys/vm/uma.h ============================================================================== --- user/attilio/vmc-playground/sys/vm/uma.h Tue Feb 26 00:10:28 2013 (r247289) +++ user/attilio/vmc-playground/sys/vm/uma.h Tue Feb 26 00:18:50 2013 (r247290) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302260018.r1Q0Io8o080357>