summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-08-27 20:50:55 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-08-27 20:50:55 +0200
commitf777743b7242e539a8ac806e4e15c4b527be4bb6 (patch)
treed107eba52d945ede7f157452c32e09eddaf9ca09 /sys/man/2
parent762e98d47e8d812f0dbe4b64ef2a73357bdebeee (diff)
parent0a5f81a44230cbd562b6d71a0a5be018e24a5ba6 (diff)
merge
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/pool12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/man/2/pool b/sys/man/2/pool
index a44b57d4d..b637e3d7c 100644
--- a/sys/man/2/pool
+++ b/sys/man/2/pool
@@ -1,6 +1,6 @@
.TH POOL 2
.SH NAME
-poolalloc, poolallocalign, poolfree, poolmsize, poolrealloc, poolcompact, poolcheck, poolblockcheck,
+poolalloc, poolallocalign, poolfree, poolmsize, poolisoverlap, poolrealloc, poolcompact, poolcheck, poolblockcheck,
pooldump \- general memory management routines
.SH SYNOPSIS
.B #include <u.h>
@@ -25,6 +25,9 @@ void poolfree(Pool* pool, void* ptr)
ulong poolmsize(Pool* pool, void* ptr)
.PP
.B
+int poolisoverlap(Pool* pool, void* ptr, ulong len)
+.PP
+.B
void* poolrealloc(Pool* pool, void* ptr, ulong size)
.PP
.B
@@ -109,6 +112,13 @@ that would usually go unused.
.IR Poolmsize
grows the block to encompass this extra space and returns the new size.
.PP
+.I Poolisoverlap
+checks if the byte span
+.BR [ptr , ptr + len)
+overlaps the arenas of the specified
+.BR pool ,
+returning non-zero when there is overlap or zero if none.
+.PP
The
.I poolblockcheck
and