summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorMarcel Telka <marcel@telka.sk>2018-05-04 13:52:36 +0200
committerDan McDonald <danmcd@joyent.com>2018-05-14 08:13:57 -0400
commit2c6e2b378f8445b330094f0316685e546585f44d (patch)
treed95e0cff0e4645298358b93a3a8db0fb469992f8 /usr/src
parent71b76ee353d2a2effae389b51205465a42199e9d (diff)
downloadillumos-joyent-2c6e2b378f8445b330094f0316685e546585f44d.tar.gz
9520 list_link_replace(9f): Documentation does not match reality
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Yuri Pankov <yuripv@yuripv.net> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/man/man9f/list_create.9f12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/man/man9f/list_create.9f b/usr/src/man/man9f/list_create.9f
index 920d2bdac8..94d1866490 100644
--- a/usr/src/man/man9f/list_create.9f
+++ b/usr/src/man/man9f/list_create.9f
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH LIST_CREATE 9F "Sep 17, 2009"
+.TH LIST_CREATE 9F "May 3, 2018"
.SH NAME
list_create, list_destroy, list_insert_after, list_insert_before,
list_insert_head, list_insert_tail, list_remove, list_remove_head,
@@ -102,7 +102,7 @@ functions
.LP
.nf
-\fBvoid\fR \fBlist_link_replace\fR(\fBlist_node_t *\fR\fInode1\fR, \fBlist_node_t *\fR\fInode2\fR);
+\fBvoid\fR \fBlist_link_replace\fR(\fBlist_node_t *\fR\fIlold\fR, \fBlist_node_t *\fR\fIlnew\fR);
.fi
.SH DESCRIPTION
@@ -191,10 +191,10 @@ lists were initialized using identical size and offset parameters. Upon
completion, the \fIsrc\fR list will be empty.
.sp
.LP
-The \fBlist_link_replace()\fR function swaps two items on a list. Note that
-the items need not be on the same list, but extreme care must be used to ensure
-that both lists are protected from concurrent accesses and that the lists were
-initialized with identical size and offset parameters.
+The \fBlist_link_replace()\fR function replaces \fIlold\fR node on an active
+list with the \fIlnew\fR node. When the function is called the \fIlnew\fR node
+must not be linked on any list. Upon completion the \fIlold\fR node will be
+left unlinked from any list.
.SH ATTRIBUTES
.LP
See \fBattributes\fR(5) for descriptions of the following attributes: