xref: /titanic_50/usr/src/man/man3avl/avl_numnodes.3avl (revision 6a37fc30652374065d6e4ab52366c499e5a34b66)
1.\"
2.\" This file and its contents are supplied under the terms of the
3.\" Common Development and Distribution License ("CDDL"), version 1.0.
4.\" You may only use this file in accordance with the terms of version
5.\" 1.0 of the CDDL.
6.\"
7.\" A full copy of the text of the CDDL should have accompanied this
8.\" source.  A copy of the CDDL is also available via the Internet at
9.\" http://www.illumos.org/license/CDDL.
10.\"
11.\"
12.\" Copyright 2015 Joyent, Inc.
13.\"
14.Dd May 07, 2015
15.Dt AVL_NUMNODES 3AVL
16.Os
17.Sh NAME
18.Nm avl_numnodes
19.Nd return the number of nodes in an AVL tree
20.Sh SYNOPSIS
21.Lb libavl
22.In sys/avl.h
23.Ft ulong_t
24.Fo avl_numnodes
25.Fa "avl_tree_t *tree"
26.Fc
27.Sh DESCRIPTION
28The
29.Fn avl_numnodes
30function returns the number of nodes in the AVL tree rooted
31at
32.Fa tree .
33.Sh RETURN VALUES
34The number of nodes in the tree is returned.
35.Sh EXAMPLES
36See the
37.Sy EXAMPLES
38section in
39.Xr libavl 3LIB .
40.Sh INTERFACE STABILITY
41.Sy Committed
42.Sh MT-Level
43See
44.Sx Locking
45in
46.Xr libavl 3LIB .
47.Sh SEE ALSO
48.Xr libavl 3LIB
49