org.jvnet.solaris.nvlist.jna
Interface libnvpair
- All Superinterfaces:
- com.sun.jna.Library
public interface libnvpair
- extends com.sun.jna.Library
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from interface com.sun.jna.Library |
com.sun.jna.Library.Handler |
| Fields inherited from interface com.sun.jna.Library |
OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER |
|
Method Summary |
int |
nvlist_add_boolean_value(nvlist_t list,
String name,
boolean value)
|
int |
nvlist_add_boolean(nvlist_t list,
String name)
|
int |
nvlist_add_nvlist(nvlist_t list,
String key,
nvlist_t value)
|
int |
nvlist_add_string(nvlist_t list,
String key,
String value)
|
int |
nvlist_alloc(PtrByReference<nvlist_t> result,
int nvflag,
int kmflag)
The nvlist_alloc() function allocates a new name-value pair list and
updates nvlp to point to the handle. |
void |
nvlist_free(nvlist_t list)
|
int |
nvlist_lookup_nvlist(nvlist_t list,
String name,
PtrByReference<nvlist_t> result)
|
int |
nvlist_lookup_string(nvlist_t list,
String name,
com.sun.jna.ptr.PointerByReference result)
|
LIBNVPAIR
static final libnvpair LIBNVPAIR
NV_UNIQUE_NAME
static final int NV_UNIQUE_NAME
- nvpair names are unique.
- See Also:
- Constant Field Values
NV_UNIQUE_NAME_TYPE
static final int NV_UNIQUE_NAME_TYPE
- Name-data type combination is unique
- See Also:
- Constant Field Values
nvlist_alloc
int nvlist_alloc(PtrByReference<nvlist_t> result,
int nvflag,
int kmflag)
- The nvlist_alloc() function allocates a new name-value pair list and
updates nvlp to point to the handle. The argument nvflag specifies nvlist_t
properties to remain persistent across packing, unpacking, and duplication.
If NV_UNIQUE_NAME is specified for nvflag, existing nvpairs with matching names are removed
before the new nvpair is added. If NV_UNIQUE_NAME_TYPE is specified for nvflag, existing
nvpairs with matching names and data types are removed before the new nvpair is added.
See nvlist_add_byte(9F) for more details.
- Parameters:
nvflag - Specify bit fields defining nvlist_t properties: NV_UNIQUE_NAME, NV_UNIQUE_NAME_TYPEkmflag - Kernel memory allocation policy, either KM_SLEEP or KM_NOSLEEP.
nvlist_free
void nvlist_free(nvlist_t list)
nvlist_add_boolean
int nvlist_add_boolean(nvlist_t list,
String name)
nvlist_add_boolean_value
int nvlist_add_boolean_value(nvlist_t list,
String name,
boolean value)
nvlist_add_string
int nvlist_add_string(nvlist_t list,
String key,
String value)
nvlist_add_nvlist
int nvlist_add_nvlist(nvlist_t list,
String key,
nvlist_t value)
nvlist_lookup_string
int nvlist_lookup_string(nvlist_t list,
String name,
com.sun.jna.ptr.PointerByReference result)
nvlist_lookup_nvlist
int nvlist_lookup_nvlist(nvlist_t list,
String name,
PtrByReference<nvlist_t> result)
Copyright © 2012. All Rights Reserved.