summaryrefslogtreecommitdiffstats
path: root/lib/libnv
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2014-09-25 10:59:01 +0000
committerpjd <pjd@FreeBSD.org>2014-09-25 10:59:01 +0000
commite0dc7a516e575f9b251ee9898a07ad5e458142a6 (patch)
tree2018531b1eeb8dec3eab62415dc8fff7f4879fbc /lib/libnv
parentbbf591ef7acc2d262bd513a1ae951e34a56ee402 (diff)
downloadFreeBSD-src-e0dc7a516e575f9b251ee9898a07ad5e458142a6.zip
FreeBSD-src-e0dc7a516e575f9b251ee9898a07ad5e458142a6.tar.gz
Document the new nvlist_get_parent() function.
Submitted by: Mariusz Zaborski
Diffstat (limited to 'lib/libnv')
-rw-r--r--lib/libnv/nv.38
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libnv/nv.3 b/lib/libnv/nv.3
index 63c8e8b..29ba744 100644
--- a/lib/libnv/nv.3
+++ b/lib/libnv/nv.3
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 21, 2014
+.Dd September 25, 2014
.Dt NV 3
.Os
.Sh NAME
@@ -150,6 +150,8 @@
.Fn nvlist_get_descriptor "const nvlist_t *nvl" "const char *name"
.Ft "const void *"
.Fn nvlist_get_binary "const nvlist_t *nvl" "const char *name" "size_t *sizep"
+.Ft "const nvlist_t *"
+.Fn nvlist_get_parent "const nvlist_t *nvl"
.\"
.Ft bool
.Fn nvlist_take_bool "nvlist_t *nvl" "const char *name"
@@ -437,6 +439,10 @@ extension, which allows to provide default value for a missing element.
The nvlist must not be in error state.
.Pp
The
+.Fn nvlist_get_parent
+function allows to obtain the parent nvlist from the nested nvlist.
+.Pp
+The
.Fn nvlist_take_bool ,
.Fn nvlist_take_number ,
.Fn nvlist_take_string ,
OpenPOWER on IntegriCloud