From: Andre Noll Date: Sat, 9 Aug 2008 15:06:02 +0000 (+0200) Subject: Add a comment to search_rbtree(). X-Git-Tag: v0.1.0~38^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=5498b872d9e28af6210b957c2336be65b1900522;hp=b33b9e0c1202274b8ac49eaa97831f58dbb71970 Add a comment to search_rbtree(). --- diff --git a/osl.c b/osl.c index 9e6de44..c92412f 100644 --- a/osl.c +++ b/osl.c @@ -771,6 +771,10 @@ int get_mapped_object(const struct osl_table *t, unsigned col_num, return 1; } +/* + * It's OK to call this with result = rb_node = NULL. If result is not NULL, + * and rb key was not found, result points to the parent node. + */ static int search_rbtree(const struct osl_object *obj, const struct osl_table *t, unsigned col_num, struct rb_node **result, struct rb_node ***rb_link)