Print this page
code review from Josh and Robert

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9f/vmem_add.9f
          +++ new/usr/src/man/man9f/vmem_add.9f
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28  .Fc
  29   29  .Sh INTERFACE LEVEL
  30   30  illumos DDI specific
  31   31  .Sh PARAMETERS
  32   32  .Bl -tag -width Ds
  33   33  .It Fa vmp
  34   34  The vmem arena to which the span should be added.
  35   35  .It Fa vaddr
  36   36  The base address of the span to add.
  37   37  .It Fa size
  38      -The size of the span to add
       38 +The size of the span to add.
  39   39  .It Fa vmflag
  40   40  Flags affecting the allocation of the span to add.
  41   41  .El
  42   42  .Sh DESCRIPTION
  43   43  The
  44   44  .Fn vmem_add
  45   45  function adds
  46   46  .Fa size
  47   47  bytes starting at
  48   48  .Fa vaddr
  49   49  to a vmem arena from which future calls to
  50   50  .Fn vmem_alloc
  51   51  may allocate.
  52   52  .Pp
  53   53  .Dv VM_SLEEP
  54   54  or
  55   55  .Dv VM_NOSLEEP
  56      -must be specified, and indicate whether the addition may block.
       56 +must be specified in
       57 +.Fa vmflag ,
       58 +and indicate whether the addition may block.
  57   59  .Sh CONTEXT
  58   60  This function can be called from either user or kernel context.
  59   61  If the
  60   62  .Dv VM_NOSLEEP
  61   63  flag is specified, it may also be called from interrupt context.
  62   64  .Sh RETURN VALUES
  63   65  Upon success
  64   66  .Fn vmem_add
  65   67  returns
  66   68  .Fa vaddr .
  67   69  On failure,
  68   70  .Dv NULL
  69   71  is returned.
  70   72  .Sh SEE ALSO
  71   73  .Xr vmem 9 ,
  72   74  .Xr vmem_alloc 9F ,
  73   75  .Xr vmem_create 9F
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX