Print this page
more copy-editting from Josh

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9f/vmem_create.9f
          +++ new/usr/src/man/man9f/vmem_create.9f
↓ open down ↓ 68 lines elided ↑ open up ↑
  69   69  .Dq quantum .
  70   70  The granularity of the arena.  The amount allocated at minimum by each
  71   71  request.  Must be a power of 2.
  72   72  .It Fa afunc
  73   73  A function which is called to import new spans from
  74   74  .Fa source ,
  75   75  which may be
  76   76  .Dv NULL
  77   77  if this arena does not import from another.
  78   78  When calling
  79      -.Fn vmem_create
       79 +.Fn vmem_create ,
  80   80  .Fa afunc
  81      -is an
  82      -.Vt vmem_alloc_t
       81 +is a
       82 +.Vt vmem_alloc_t ,
  83   83  a function taking three parameters and returning a pointer to
  84   84  .Vt void
  85   85  (the imported space):
  86   86  .Bl -tag -width Ds
  87   87  .It Fa "vmem_t *"
  88   88  The source arena from which we'll import.  The
  89   89  .Fa source
  90   90  argument to
  91   91  .Fn vmem_create .
  92   92  .It Fa size_t
  93      -The size to import
       93 +The size to import.
  94   94  .It Fa int
  95   95  The
  96   96  .Fa vmflag
  97   97  argument used for the import.
  98   98  .El
  99   99  .Pp
 100  100  When calling
 101      -.Fn vmem_xcreate
      101 +.Fn vmem_xcreate ,
 102  102  .Fa afunc
 103      -is an
 104      -.Vt vmem_ximport_t
      103 +is a
      104 +.Vt vmem_ximport_t ,
 105  105  a function taking four parameters and returning a pointer to
 106  106  .Vt void
 107  107  (the imported space):
 108  108  .Bl -tag -width Ds
 109  109  .It Fa "vmem_t *"
 110  110  The source arena from which we'll import.  The
 111  111  .Fa source
 112  112  argument to
 113  113  .Fn vmem_xcreate .
 114  114  .It Fa "size_t *"
 115      -The size of the import,
      115 +The size of the import.
 116  116  .Fa afunc
 117  117  may
 118  118  .Em increase
 119  119  this size if that is desirable, but must never decrease it.
 120  120  .It Fa size_t
 121  121  The desired alignment of the imported space.
 122  122  .It Fa int
 123      -the
      123 +The
 124  124  .Fa vmflag
 125  125  argument used for the import.
 126  126  .El
 127  127  .It Fa ffunc
 128  128  A function which is called to return spans to
 129  129  .Fa source ,
 130  130  which may be
 131  131  .Dv NULL
 132  132  if this arena does not import from another.
 133  133  This is a
 134      -.Vt vmem_free_t
 135      -a function taking three parametes and returning void:
      134 +.Vt vmem_free_t ,
      135 +a function taking three parameters and returning void:
 136  136  .Bl -tag -width Ds
 137  137  .It Fa "vmem_t"
 138  138  The arena to which space is being returned.  The
 139  139  .Fa source
 140  140  argument to
 141  141  .Fn vmem_create
 142  142  or
 143  143  .Fn vmem_xcreate .
 144  144  .It Fa "void *"
 145  145  The span being returned to the source arena.
↓ open down ↓ 65 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX