/linux/Documentation/core-api/ |
H A D | rbtree.rst | 2 Red-black Trees (rbtree) in Linux 29 The high-resolution timer code uses an rbtree to organize outstanding 35 This document covers use of the Linux rbtree implementation. For more 47 Linux's rbtree implementation lives in the file "lib/rbtree.c". To use it, 48 "#include <linux/rbtree.h>". 50 The Linux rbtree implementation is optimized for speed, and thus has one 56 which call the provided rbtree functions. Locking is also left up to the 57 user of the rbtree code. 59 Creating a new rbtree 62 Data nodes in an rbtree tree are structures containing a struct rb_node member:: [all …]
|
H A D | index.rst | 45 rbtree
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | rbtree.c | 19 struct rbtree *skel; in test_rbtree_add_nodes() 41 struct rbtree *skel; in test_rbtree_add_nodes_nested() 63 struct rbtree *skel; in test_rbtree_add_and_remove() 85 struct rbtree *skel; in test_rbtree_add_and_remove_array() 106 struct rbtree *skel; in test_rbtree_first_and_remove() 130 struct rbtree *skel; in test_rbtree_api_release_aliasing()
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | rbtree.rst | 4 :Original: Documentation/core-api/rbtree.rst 11 Linux中的红黑树(rbtree) 47 Linux的红黑树实现在文件“lib/rbtree.c”中。要使用它,需要“#include <linux/rbtree.h>”。 219 实现增强型红黑树操作的C文件必须包含<linux/rbtree_augmented.h>而不是<linux/rbtree.h>。
|
H A D | index.rst | 46 rbtree
|
/linux/rust/kernel/ |
H A D | rbtree.rs | 342 rbtree: self, in raw_entry() 351 rbtree: raw_self, in raw_entry() 1154 rbtree: *mut RBTree<K, V>, field 1181 unsafe { bindings::rb_insert_color(node_links, addr_of_mut!((*self.rbtree).root)) }; in insert() 1200 rbtree: &'a mut RBTree<K, V>, field 1235 unsafe { bindings::rb_erase(self.node_links, &mut self.rbtree.root) }; in remove_node() 1269 bindings::rb_replace_node(self.node_links, new_node_links, &mut self.rbtree.root) in replace()
|
/linux/tools/bpf/resolve_btfids/ |
H A D | Build | 4 resolve_btfids-y += rbtree.o
|
/linux/Documentation/bpf/ |
H A D | graph_ds_impl.rst | 6 structures (linked_list, rbtree), with particular focus on the verifier's 35 Two such data structures - linked_list and rbtree - have many verification 73 The "root" type for both linked_list and rbtree expects to be in a map_value 201 Any reference to a node that is in an rbtree _must_ be non-owning, since 203 that isn't in rbtree _must_ be owning. This results in a nice property: 247 a node which is not in an rbtree. Statement 5 will try to remove a node which
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | exceptions_fail.c | 30 private(A) struct bpf_rb_root rbtree __contains(foo, node); 173 bpf_rbtree_add(&rbtree, &f->node, rbless); in reject_with_rbtree_add_throw()
|
/linux/scripts/gdb/linux/ |
H A D | proc.py | 21 from linux import rbtree 176 … for mnt in rbtree.rb_inorder_for_each_entry(namespace['mounts'], mount_ptr_type, "mnt_node"):
|
H A D | timerlist.py | 10 from linux import rbtree 50 curr = rbtree.rb_next(curr)
|
/linux/scripts/gdb/ |
H A D | vmlinux-gdb.py | 37 import linux.rbtree
|
/linux/tools/perf/ |
H A D | MANIFEST | 18 tools/lib/rbtree.c
|
/linux/tools/objtool/ |
H A D | Build | 31 $(OUTPUT)librbtree.o: ../lib/rbtree.c FORCE
|
/linux/drivers/base/regmap/ |
H A D | Makefile | 6 obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-flat.o regcache-maple.o
|
/linux/Documentation/locking/ |
H A D | rt-mutex-design.rst | 106 the task is blocked on. It also has rbtree node structures to 107 place the task in the waiters rbtree of a mutex as well as the 108 pi_waiters rbtree of a mutex owner task (described below). 200 mutex has a rbtree to store these waiters by priority. This tree is protected 208 To keep track of the PI chains, each process has its own PI rbtree. This is 218 This tree is stored in the task structure of a process as a rbtree called 408 should be at, but the rbtree nodes of the task's waiter have not been updated 474 to the mutex. The rbtree node of waiter are initialized to the processes
|
/linux/Documentation/timers/ |
H A D | hrtimers.rst | 95 file systems. The rbtree is solely used for time sorted ordering, while 97 queued timers, without having to walk the rbtree. 113 be set without having to touch the rbtree. This also makes the handling
|
/linux/Documentation/scheduler/ |
H A D | sched-design-CFS.rst | 61 runqueues, but it uses a time-ordered rbtree to build a "timeline" of future 75 CFS maintains a time-ordered rbtree, where all runnable tasks are sorted by the 86 becomes the "leftmost task" of the time-ordered rbtree it maintains (plus a
|
/linux/Documentation/block/ |
H A D | deadline-iosched.rst | 69 rbtree front sector lookup when the io scheduler merge function is called.
|
/linux/tools/testing/selftests/hid/ |
H A D | Makefile | 158 $(TOOLSDIR)/lib/rbtree.c \
|
/linux/drivers/block/xen-blkback/ |
H A D | blkback.c | 150 #define foreach_grant_safe(pos, n, rbtree, node) \ argument 151 for ((pos) = container_of(rb_first((rbtree)), typeof(*(pos)), node), \
|
/linux/tools/testing/selftests/bpf/ |
H A D | Makefile | 410 $(TOOLSDIR)/lib/rbtree.c \
|
/linux/lib/ |
H A D | Kconfig.debug | 2375 A benchmark measuring the performance of the rbtree library. 2376 Also includes rbtree invariant checks.
|
/linux/Documentation/admin-guide/ |
H A D | cgroup-v2.rst | 3225 rbtree and treated like equal peers, regardless where they are located
|