Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/uma.h
Show First 20 Lines • Show All 477 Lines • ▼ Show 20 Lines | ||||||||||
/* | /* | |||||||||
* Set a reserved number of items to hold for M_USE_RESERVE allocations. All | * Set a reserved number of items to hold for M_USE_RESERVE allocations. All | |||||||||
* other requests must allocate new backing pages. | * other requests must allocate new backing pages. | |||||||||
*/ | */ | |||||||||
void uma_zone_reserve(uma_zone_t zone, int nitems); | void uma_zone_reserve(uma_zone_t zone, int nitems); | |||||||||
/* | /* | |||||||||
* Reserves the maximum KVA space required by the zone and configures the zone | * Reserves the maximum KVA space required by the zone and configures the zone | |||||||||
* to use a VM_ALLOC_NOOBJ-based backend allocator. | * to use a backend which simply provides unnamed physical pages. | |||||||||
alc: I think that we should have a different word, not "anonymous", to describe these pages. Most… | ||||||||||
Done Inline ActionsPerhaps "unnamed"? Elsewhere we refer to the <object, pindex> tuple of a page as its "identity", so some adjective similar to "anonymous" seems appropriate. markj: Perhaps "unnamed"? Elsewhere we refer to the <object, pindex> tuple of a page as its "identity"… | ||||||||||
alcUnsubmitted Not Done Inline Actions
We are not space constrained here, i.e., we are not trying to come up with a short phrase that fits on the same as a #define, so I would argue that we unambiguously spell out what we mean. alc: We are not space constrained here, i.e., we are not trying to come up with a short phrase that… | ||||||||||
* | * | |||||||||
* Arguments: | * Arguments: | |||||||||
* zone The zone to update. | * zone The zone to update. | |||||||||
* nitems The upper limit on the number of items that can be allocated. | * nitems The upper limit on the number of items that can be allocated. | |||||||||
* | * | |||||||||
* Returns: | * Returns: | |||||||||
* 0 if KVA space can not be allocated | * 0 if KVA space can not be allocated | |||||||||
* 1 if successful | * 1 if successful | |||||||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |
I think that we should have a different word, not "anonymous", to describe these pages. Most so-called "anonymous memory" consists of pages that belong to VM objects.