diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 2003-02-06 11:04:47 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 2003-02-06 11:04:47 +0000 |
commit | d64982518242686ea2827535231707ad7fc7c0ac (patch) | |
tree | 4398da2631a166f1427319a2ad4058adc32490c7 /lib/libc/db/man/mpool.3 | |
parent | d674899b66566774d36891b14b49b6abee17806c (diff) | |
download | src-d64982518242686ea2827535231707ad7fc7c0ac.tar.gz src-d64982518242686ea2827535231707ad7fc7c0ac.zip |
The .Fn function
Notes
Notes:
svn path=/head/; revision=110440
Diffstat (limited to 'lib/libc/db/man/mpool.3')
-rw-r--r-- | lib/libc/db/man/mpool.3 | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/libc/db/man/mpool.3 b/lib/libc/db/man/mpool.3 index 965be557f060..32714cf03e0f 100644 --- a/lib/libc/db/man/mpool.3 +++ b/lib/libc/db/man/mpool.3 @@ -61,14 +61,15 @@ .Ft int .Fn mpool_close "MPOOL *mp" .Sh DESCRIPTION -.Nm Mpool -is the library interface intended to provide page oriented buffer management +The +.Nm mpool +library interface is intended to provide page oriented buffer management of files. The buffers may be shared between processes. .Pp -The function +The .Fn mpool_open -initializes a memory pool. +function initializes a memory pool. The .Fa key argument is the byte string used to negotiate between multiple @@ -118,9 +119,9 @@ Both functions are called with the .Fa pgcookie pointer, the page number and a pointer to the page to being read or written. .Pp -The function +The .Fn mpool_new -takes an +function takes an .Ft MPOOL pointer and an address as arguments. If a new page can be allocated, a pointer to the page is returned and @@ -133,9 +134,9 @@ is returned and .Va errno is set. .Pp -The function +The .Fn mpool_get -takes a +function takes a .Ft MPOOL pointer and a page number as arguments. If the page exists, a pointer to the page is returned. @@ -148,9 +149,9 @@ The .Fa flags argument is not currently used. .Pp -The function +The .Fn mpool_put -unpins the page referenced by +function unpins the page referenced by .Fa pgaddr . The .Fa pgaddr @@ -174,9 +175,9 @@ The function returns 0 on success and -1 if an error occurs. .Pp -The function +The .Fn mpool_sync -writes all modified pages associated with the +function writes all modified pages associated with the .Ft MPOOL pointer to the backing file. |