hpdata: Use addr/size instead of begin/npages.

This is easier for the users of the hpdata.
This commit is contained in:
David Goldblatt
2020-11-30 14:34:27 -08:00
committed by David Goldblatt
parent 5228d869ee
commit 0971e1e4e3
3 changed files with 20 additions and 20 deletions

View File

@@ -133,7 +133,7 @@ void hpdata_init(hpdata_t *hpdata, void *addr, uint64_t age);
* Given an hpdata which can serve an allocation request, pick and reserve an
* offset within that allocation.
*/
size_t hpdata_reserve_alloc(hpdata_t *hpdata, size_t npages);
void hpdata_unreserve(hpdata_t *hpdata, size_t start, size_t npages);
void *hpdata_reserve_alloc(hpdata_t *hpdata, size_t sz);
void hpdata_unreserve(hpdata_t *hpdata, void *begin, size_t sz);
#endif /* JEMALLOC_INTERNAL_HPDATA_H */