diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-08-27 20:23:55 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-08-27 20:23:55 +0200 |
commit | 8a73650874a68575fb7b93a44f3bba352c50288a (patch) | |
tree | 349517065c63d8b28024951f9919f37d9047a19c /sys/man | |
parent | a1e96ae4b512307d69012f42a291253dee0f9303 (diff) |
libc: add poolisoverlap() and definitions for Pool *secrmem
Diffstat (limited to 'sys/man')
-rw-r--r-- | sys/man/2/pool | 12 |
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 |