Print this page
code review from Josh and Robert
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man9f/vmem_add.9f.man.txt
+++ new/usr/src/man/man9f/vmem_add.9f.man.txt
1 1 VMEM_ADD(9F) Kernel Functions for Drivers VMEM_ADD(9F)
2 2
3 3 NAME
4 4 vmem_add - add spans to a vmem arena
5 5
6 6 SYNOPSIS
7 7 #include <sys/vmem.h>
8 8
9 9 void *
↓ open down ↓ |
9 lines elided |
↑ open up ↑ |
10 10 vmem_add(vmem_t *vmp, void *vaddr, size_t size, int vmflag);
11 11
12 12 INTERFACE LEVEL
13 13 illumos DDI specific
14 14
15 15 PARAMETERS
16 16 vmp The vmem arena to which the span should be added.
17 17
18 18 vaddr The base address of the span to add.
19 19
20 - size The size of the span to add
20 + size The size of the span to add.
21 21
22 22 vmflag Flags affecting the allocation of the span to add.
23 23
24 24 DESCRIPTION
25 25 The vmem_add() function adds size bytes starting at vaddr to a vmem arena
26 26 from which future calls to vmem_alloc() may allocate.
27 27
28 - VM_SLEEP or VM_NOSLEEP must be specified, and indicate whether the
29 - addition may block.
28 + VM_SLEEP or VM_NOSLEEP must be specified in vmflag, and indicate whether
29 + the addition may block.
30 30
31 31 CONTEXT
32 32 This function can be called from either user or kernel context. If the
33 33 VM_NOSLEEP flag is specified, it may also be called from interrupt
34 34 context.
35 35
36 36 RETURN VALUES
37 37 Upon success vmem_add() returns vaddr. On failure, NULL is returned.
38 38
39 39 SEE ALSO
40 40 vmem(9), vmem_alloc(9F), vmem_create(9F)
41 41
42 42 illumos January 18, 2017 illumos
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX