rculfhash: use node instead of iter argument for deletion
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Dec 2011 13:24:25 +0000 (08:24 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Dec 2011 13:24:25 +0000 (08:24 -0500)
commitbc8c3c74b84e838b195faa8871344f5b672ae1cd
tree5a70e0357ec2d36d1d1e9b95e915866b1e012b5b
parentcaf3653dbe9dec81dc37c8e81267f27d3163dd19
rculfhash: use node instead of iter argument for deletion

Using a node instead of an iterator as argument for deletion allows
passing a node pointer (that would have been looked up from another data
structure, thus not using the iterator) as argument for deletion.

Deletion still returns -ENOENT if asked to delete the NULL node. This
simplifies the caller usage.

Suggested-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c
tests/test_urcu_hash.c
urcu/rculfhash.h
This page took 0.025548 seconds and 4 git commands to generate.