Content-type: text/html Man page of libnvpair

libnvpair

Section: Interface Libraries (3LIB)
Updated: 24 Mar 2004
Index Return to Main Contents
 

NAME

libnvpair - name-value pair library  

SYNOPSIS

cc [ flag... ] file... -lnvpair [ library... ]
#include <libnvpair.h>
 

DESCRIPTION

The libnvpair library exports a set of functions for managing name-value pairs.

The library defines four opaque handles:

nvpair_t handle to a name-value pair

nvlist_t handle to a list of name-value pairs

nv_alloc_t handle to a pluggable allocator

nv_alloc_ops_t handle to pluggable allocator operations

The library supports the following operations:

• Allocate and free an nvlist_t.

• Specify the allocater to be used when manipulating an nvlist_t.

• Add and remove an nvpair_t from a list.

• Search nvlist_t for a specified name pair.

• Pack an nvlist_t into a contiguous buffer.

• Expand a packed nvlist into a searchable nvlist_t.

 

INTERFACES

The shared object libnvpair.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.

nvlist_add_booleannvlist_add_boolean_value
nvlist_add_boolean_arraynvlist_add_byte
nvlist_add_byte_arraynvlist_add_int8
nvlist_add_int8_arraynvlist_add_int16
nvlist_add_int16_arraynvlist_add_int32
nvlist_add_int32_arraynvlist_add_int64
nvlist_add_int64_arraynvlist_add_nvlist
nvlist_add_nvlist_arraynvlist_add_nvpair
nvlist_add_stringnvlist_add_string_array
nvlist_add_uint8nvlist_add_uint8_array
nvlist_add_uint16nvlist_add_uint16_array
nvlist_add_uint32nvlist_add_uint32_array
nvlist_add_uint64nvlist_add_uint64_array
nvlist_allocnvlist_dup
nvlist_freenvlist_lookup_boolean
nvlist_lookup_boolean_valuenvlist_lookup_boolean_array
nvlist_lookup_bytenvlist_lookup_byte_array
nvlist_lookup_int8nvlist_lookup_int8_array
nvlist_lookup_int16nvlist_lookup_int16_array
nvlist_lookup_int32nvlist_lookup_int32_array
nvlist_lookup_int64nvlist_lookup_int64_array
nvlist_lookup_nvlistnvlist_lookup_nvlist_array
nvlist_lookup_nv_allocnvlist_lookup_pairs
nvlist_lookup_stringnvlist_lookup_string_array
nvlist_lookup_uint8nvlist_lookup_uint8_array
nvlist_lookup_uint16nvlist_lookup_uint16_array
nvlist_lookup_uint32nvlist_lookup_uint32_array
nvlist_lookup_uint64nvlist_lookup_uint64_array
nvlist_mergenvlist_next_nvpair
nvlist_packnvlist_remove
nvlist_remove_allnvlist_size
nvlist_unpacknvlist_xalloc
nvlist_xdupnvlist_xpack
nvlist_xunpacknvpair_name
nvpair_typenvpair_value_boolean_array
nvpair_value_boolean_valuenvpair_value_byte
nvpair_value_byte_arraynvpair_value_int8
nvpair_value_int8_arraynvpair_value_int16
nvpair_value_int16_arraynvpair_value_int32
nvpair_value_int32_arraynvpair_value_int64
nvpair_value_int64_arraynvpair_value_nvlist
nvpair_value_nvlist_arraynvpair_value_string
nvpair_value_string_arraynvpair_value_uint8
nvpair_value_uint8_arraynvpair_value_uint16
nvpair_value_uint16_arraynvpair_value_uint32
nvpair_value_uint32_arraynvpair_value_uint64
nvpair_value_uint64_arraynv_alloc_init
nv_alloc_fininv_alloc_reset

 

FILES

/lib/libnvpair.so.1 shared object

/lib/64/libnvpair.so.1 64-bit shared object

 

ATTRIBUTES

See attributes(5) for description of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWcsl (32-bit)
SUNWcslx (64-bit)
Interface StabilityEvolving
MT-LevelMT-Safe

 

SEE ALSO

intro(3), attributes(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
INTERFACES
FILES
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:38:41 GMT, October 02, 2010