public interface libnvpair
extends com.sun.jna.Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
libnvpair.data_type_t |
| Modifier and Type | Field and Description |
|---|---|
static libnvpair |
LIBNVPAIR |
static int |
NV_UNIQUE_NAME
nvpair names are unique.
|
static int |
NV_UNIQUE_NAME_TYPE
Name-data type combination is unique
|
| Modifier and Type | Method and Description |
|---|---|
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) |
static final libnvpair LIBNVPAIR
static final int NV_UNIQUE_NAME
static final int NV_UNIQUE_NAME_TYPE
int nvlist_alloc(PtrByReference<nvlist_t> result, int nvflag, int kmflag)
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.void nvlist_free(nvlist_t list)
int nvlist_lookup_string(nvlist_t list, String name, com.sun.jna.ptr.PointerByReference result)
int nvlist_lookup_nvlist(nvlist_t list, String name, PtrByReference<nvlist_t> result)
Copyright © 2008–2017. All rights reserved.