David Howells <dhowells@xxxxxxxxxx> writes: > Luis Henriques <lhenriques@xxxxxxx> wrote: > >> + if (data->inode < inode) >> + node = node->rb_left; >> + else if (data->inode > inode) >> + node = node->rb_right; > > If you're just using a plain integer as the key into your debug tree, an > xarray, IDA or IDR might be easier to use. Yep, xarray actually crossed my mind but rbtrees were still fresh in my memory. I'll look into the xarray API next time (which is likely to be much simpler, I know). Cheers, -- Luis