Print this page
patch more-manpage
patch cleanup

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9f/nvlist_alloc.9f
          +++ new/usr/src/man/man9f/nvlist_alloc.9f
   1    1  '\" te
   2    2  .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
   3    3  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4    4  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5    5  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6      -.TH NVLIST_ALLOC 9F "Jan 16, 2006"
        6 +.TH NVLIST_ALLOC 9F "Feb 15, 2016"
   7    7  .SH NAME
   8    8  nvlist_alloc, nvlist_free, nvlist_size, nvlist_pack, nvlist_unpack, nvlist_dup,
   9    9  nv_alloc_init, nv_alloc_fini, nvlist_xalloc, nvlist_xpack, nvlist_xunpack,
  10   10  nvlist_xdup, nvlist_merge \- Manage a name-value pair list
  11   11  .SH SYNOPSIS
  12   12  .LP
  13   13  .nf
  14   14  #include <sys/nvpair.h>
  15   15  
  16   16  List Manipulation:
↓ open down ↓ 235 lines elided ↑ open up ↑
 252  252  is specified for nvflag, existing nvpairs with matching names and data types
 253  253  are removed before the new nvpair is added. See \fBnvlist_add_byte\fR(9F) for
 254  254  more details.
 255  255  .sp
 256  256  .LP
 257  257  The \fBnvlist_xalloc()\fR function differs from \fBnvlist_alloc()\fR in that
 258  258  \fBnvlist_xalloc()\fR can use a different allocator, as described in the
 259  259  Pluggable Allocators section.
 260  260  .sp
 261  261  .LP
 262      -The \fBnvlist_free()\fR function frees a name-value pair list.
      262 +The \fBnvlist_free()\fR function frees a name-value pair list. If \fInvl\fR
      263 +is a null pointer, no action occurs.
 263  264  .sp
 264  265  .LP
 265  266  The \fBnvlist_size()\fR function returns the minimum size of a contiguous
 266  267  buffer large enough to pack \fInvl\fR. The \fIencoding\fR parameter specifies
 267  268  the method of encoding when packing \fInvl\fR. Supported encoding methods are:
 268  269  .sp
 269  270  .ne 2
 270  271  .na
 271  272  \fB\fBNV_ENCODE_NATIVE\fR\fR
 272  273  .ad
↓ open down ↓ 380 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX