summaryrefslogtreecommitdiffstats
path: root/share/man/man9/malloc.9
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2003-02-05 14:00:46 +0000
committercharnier <charnier@FreeBSD.org>2003-02-05 14:00:46 +0000
commit837debed575634b272e7fa68fc4a50f30722ab53 (patch)
tree784e284b89c2f076ac3977f73f911e02af6a6f39 /share/man/man9/malloc.9
parent7018edab0b1662ae72c1289f2f59441b33c6fcce (diff)
downloadFreeBSD-src-837debed575634b272e7fa68fc4a50f30722ab53.zip
FreeBSD-src-837debed575634b272e7fa68fc4a50f30722ab53.tar.gz
The .Fn function
Diffstat (limited to 'share/man/man9/malloc.9')
-rw-r--r--share/man/man9/malloc.911
1 files changed, 7 insertions, 4 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9
index 5626529..ad5ccc4 100644
--- a/share/man/man9/malloc.9
+++ b/share/man/man9/malloc.9
@@ -65,8 +65,9 @@ function allocates uninitialized memory in kernel address space for an
object whose size is specified by
.Fa size .
.Pp
+The
.Fn free
-releases memory at address
+function releases memory at address
.Fa addr
that was previously allocated by
.Fn malloc
@@ -156,11 +157,12 @@ rather than block.
Note that
.Dv M_NOWAIT
is required when running in an interrupt context.
+The
.Fn malloc ,
.Fn realloc ,
and
.Fn reallocf
-can only return
+functions can only return
.Dv NULL
if
.Dv M_NOWAIT
@@ -205,12 +207,13 @@ MALLOC(buf, struct foo_buf *, sizeof *buf, M_FOOBUF, M_NOWAIT);
.Ed
.Sh RETURN VALUES
+The
.Fn malloc ,
.Fn realloc ,
and
.Fn reallocf
-return a kernel virtual address that is suitably aligned for storage of
-any type of object, or
+functions return a kernel virtual address that is suitably aligned for
+storage of any type of object, or
.Dv NULL
if the request could not be satisfied (implying that
.Dv M_NOWAIT
OpenPOWER on IntegriCloud