* This function returns the first node (in sort order) of the tree. */
| 292 | * This function returns the first node (in sort order) of the tree. |
| 293 | */ |
| 294 | struct rb_node *rb_first(struct rb_root *root) |
| 295 | { |
| 296 | struct rb_node *n; |
| 297 | |
| 298 | n = root->rb_node; |
| 299 | if (!n) |
| 300 | return NULL; |
| 301 | while (n->rb_left) |
| 302 | n = n->rb_left; |
| 303 | return n; |
| 304 | } |
| 305 | EXPORT_SYMBOL(rb_first); |
| 306 | |
| 307 | struct rb_node *rb_last(struct rb_root *root) |
no outgoing calls
no test coverage detected