Print this page
    
code review from Josh and Robert
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/man/man9f/vmem_contains.9f
          +++ new/usr/src/man/man9f/vmem_contains.9f
   1    1  .\"
   2    2  .\" This file and its contents are supplied under the terms of the
   3    3  .\" Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  .\" You may only use this file in accordance with the terms of version
   5    5  .\" 1.0 of the CDDL.
   6    6  .\"
   7    7  .\" A full copy of the text of the CDDL should have accompanied this
  
    | 
      ↓ open down ↓ | 
    7 lines elided | 
    
      ↑ open up ↑ | 
  
   8    8  .\" source.  A copy of the CDDL is also available via the Internet at
   9    9  .\" http://www.illumos.org/license/CDDL.
  10   10  .\"
  11   11  .\"
  12   12  .\" Copyright 2017, Richard Lowe.
  13   13  .\"
  14   14  .Dd Jan 18, 2017
  15   15  .Dt VMEM_CONTAINS 9F
  16   16  .Os
  17   17  .Sh NAME
  18      -.Nm vmem_contains ,
       18 +.Nm vmem_contains
  19   19  .Nd check for membership in a vmem arena
  20   20  .Sh SYNOPSIS
  21   21  .In sys/vmem.h
  22   22  .Ft int
  23   23  .Fo vmem_contains
  24   24  .Fa "vmem_t *vmp"
  25   25  .Fa "void *vaddr"
  26   26  .Fa "size_t *size"
  27   27  .Fc
  28   28  .Sh INTERFACE LEVEL
  29   29  illumos DDI specific
  30   30  .Sh PARAMETERS
  31   31  .Bl -tag -width Ds
  32   32  .It Fa vmp
  33   33  The vmem arena
  34   34  .It Fa vaddr
  35   35  address of the segment to query.
  36   36  .It Fa size
  37   37  size of the segment to query
  38   38  .El
  39   39  .Sh DESCRIPTION
  40   40  The
  41   41  .Fn vmem_contains
  42   42  function checks whether a segment of
  43   43  .Fa size
  44   44  bytes at
  45   45  .Fa vaddr
  46   46  exists within the vmem arena
  47   47  .Fa vmp .
  48   48  .Sh CONTEXT
  49   49  This function may be called from user or kernel context.
  50   50  .Sh RETURN VALUES
  51   51  .Fn vmem_contains
  52   52  returns non\-0 if the segment exists, and 0 otherwise.
  53   53  .Sh SEE ALSO
  54   54  .Xr vmem 9 ,
  55   55  .Xr vmem_add 9F ,
  56   56  .Xr vmem_alloc 9F ,
  57   57  .Xr vmem_create 9F
  
    | 
      ↓ open down ↓ | 
    29 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX