Lines Matching full:root
13 def rb_first(root): argument
14 if root.type == rb_root_type.get_type():
15 node = root.address.cast(rb_root_type.get_type().pointer())
16 elif root.type != rb_root_type.get_type().pointer():
17 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type))
19 node = root['rb_node']
29 def rb_last(root): argument
30 if root.type == rb_root_type.get_type():
31 node = root.address.cast(rb_root_type.get_type().pointer())
32 elif root.type != rb_root_type.get_type().pointer():
33 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type))
35 node = root['rb_node']
103 $lx_rb_first(root): Return the node at the given index.
104 If index is omitted, the root node is dereferenced and returned."""
109 def invoke(self, root): argument
110 result = rb_first(root)
123 $lx_rb_last(root): Return the node at the given index.
124 If index is omitted, the root node is dereferenced and returned."""
129 def invoke(self, root): argument
130 result = rb_last(root)
144 If index is omitted, the root node is dereferenced and returned."""
164 If index is omitted, the root node is dereferenced and returned."""