| /linux/net/ceph/ |
| H A D | debugfs.c | 74 for (n = rb_first(&map->pg_pools); n; n = rb_next(n)) { in osdmap_show() 97 for (n = rb_first(&map->pg_temp); n; n = rb_next(n)) { in osdmap_show() 108 for (n = rb_first(&map->primary_temp); n; n = rb_next(n)) { in osdmap_show() 115 for (n = rb_first(&map->pg_upmap); n; n = rb_next(n)) { in osdmap_show() 126 for (n = rb_first(&map->pg_upmap_items); n; n = rb_next(n)) { in osdmap_show() 166 for (rp = rb_first(&monc->generic_request_tree); rp; rp = rb_next(rp)) { in monc_show() 245 for (n = rb_first(&osd->o_requests); n; n = rb_next(n)) { in dump_requests() 271 for (n = rb_first(&osd->o_linger_requests); n; n = rb_next(n)) { in dump_linger_requests() 332 for (n = rb_first(&osd->o_backoffs_by_id); n; n = rb_next(n)) { in dump_backoffs() 358 for (n = rb_first(&osdc->osds); n; n = rb_next(n)) { in osdc_show() [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | eeh_cache.c | 103 n = rb_first(&cache->rb_root); in eeh_addr_cache_print() 218 n = rb_first(&pci_io_addr_cache_root.rb_root); in __eeh_addr_cache_rmv_dev() 270 for (n = rb_first(&pci_io_addr_cache_root.rb_root); n; n = rb_next(n)) { in eeh_addr_cache_show()
|
| /linux/tools/perf/util/ |
| H A D | rb_resort.h | |
| H A D | callchain.c | 484 n = rb_first(&node->rb_root_in); in sort_chain_graph_abs() 515 n = rb_first(&node->rb_root_in); in sort_chain_graph_rel() 546 n = rb_first(&node->rb_root_in); in create_child() 611 n = rb_first(&new->rb_root_in); in fill_node() 1110 n = rb_first(&src->rb_root_in); in callchain_cursor_append() 1354 n = rb_first(&node->rb_root_in); in count_float_printf() 1562 n = rb_first(&node->rb_root_in); in callchain_node__make_parent_list() 1602 n = rb_first(&node->rb_root_in); 1829 struct rb_node *rb_node = rb_first(root); in sample__for_each_callchain_node()
|
| H A D | env.c | 102 first = rb_first(&env->bpf_progs.infos); in perf_env__iterate_bpf_prog_info() 184 next = rb_first(root); in perf_env__purge_bpf() 200 next = rb_first(root); in perf_env__purge_bpf()
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | rbtree.rst | 165 struct rb_node *rb_first(struct rb_root *tree); 170 要开始迭代,需要使用一个指向树根的指针调用rb_first()或rb_last(),它将返回一个指向 181 for (node = rb_first(&mytree); node; node = rb_next(node)) 189 时间复杂度为O(logN)的rb_first()的调用,以简单地获取指针,避免了潜在的昂贵的树迭代。
|
| /linux/scripts/gdb/linux/ |
| H A D | rbtree.py | 25 def rb_first(root): function 122 result = rb_first(root)
|
| /linux/lib/ |
| H A D | rbtree_test.c | 198 for (rb = rb_first(&root.rb_root); rb; rb = rb_next(rb)) { in check() 224 for (rb = rb_first(&root.rb_root); rb; rb = rb_next(rb)) { in check_augmented() 291 for (node = rb_first(&root.rb_root); node; node = rb_next(node)) in basic_check() 305 node = rb_first(&root.rb_root); in basic_check()
|
| /linux/rust/helpers/ |
| H A D | rbtree.c | 14 return rb_first(root); in rust_helper_rb_first()
|
| /linux/tools/perf/ui/gtk/ |
| H A D | hists.c | 101 bool has_single_node = (rb_first(root) == rb_last(root)); in perf_gtk__add_callchain_flat() 103 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_flat() 165 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_folded() 224 bool has_single_node = (rb_first(root) == rb_last(root)); in perf_gtk__add_callchain_graph() 226 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_graph()
|
| /linux/kernel/trace/ |
| H A D | trace_stat.c | 185 node = rb_first(&session->stat_root); in stat_seq_start() 200 return rb_first(&session->stat_root); in stat_seq_next()
|
| /linux/fs/proc/ |
| H A D | nommu.c | 86 for (p = rb_first(&nommu_region_tree); p; p = rb_next(p)) in nommu_region_list_start()
|
| /linux/fs/btrfs/ |
| H A D | ref-verify.c | 224 while ((n = rb_first(&be->roots))) { in free_block_entry() 230 while((n = rb_first(&be->refs))) { in free_block_entry() 626 for (n = rb_first(&be->refs); n; n = rb_next(n)) { in dump_block_entry() 634 for (n = rb_first(&be->roots); n; n = rb_next(n)) { in dump_block_entry() 897 while ((n = rb_first(&fs_info->block_tree))) { in btrfs_free_ref_cache()
|
| /linux/tools/perf/ui/stdio/ |
| H A D | hist.c | 129 node = rb_first(root); in __callchain__fprintf_graph() 234 node = rb_first(root); in callchain__fprintf_graph() 315 struct rb_node *rb_node = rb_first(tree); in callchain__fprintf_flat() 366 struct rb_node *rb_node = rb_first(tree); in callchain__fprintf_folded()
|
| /linux/rust/kernel/ |
| H A D | rbtree.rs | 206 // - `bindings::rb_first` produces a valid pointer to a node given `root` is valid. in iter() 209 next: unsafe { bindings::rb_first(&self.root) }, in iter() 221 // - `bindings::rb_first` produces a valid pointer to a node given `root` is valid. in iter_mut() 224 next: unsafe { bindings::rb_first(from_mut(&mut self.root)) }, in iter_mut() 249 let current = unsafe { bindings::rb_first(root) }; in cursor_front_mut() 264 let current = unsafe { bindings::rb_first(root) }; in cursor_front()
|
| /linux/tools/perf/tests/ |
| H A D | hists_cumulate.c | 215 for (node = rb_first(root), i = 0; in do_test() 237 cnode = rb_entry(rb_first(root), struct callchain_node, rb_node); in do_test()
|
| /linux/tools/perf/ui/browsers/ |
| H A D | map.c | 122 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse()
|
| H A D | hists.c | 183 for (nd = rb_first(&node->rb_root); nd; nd = rb_next(nd)) { in callchain_node__count_rows_rb_tree() 266 for (nd = rb_first(chain); nd; nd = rb_next(nd)) { in callchain__count_rows() 332 struct rb_node *nd = rb_first(&node->rb_root); in callchain_node__init_have_children_rb_tree() 334 for (nd = rb_first(&node->rb_root); nd; nd = rb_next(nd)) { in callchain_node__init_have_children_rb_tree() 371 struct rb_node *nd = rb_first(root); in callchain__init_have_children() 374 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in callchain__init_have_children() 517 for (nd = rb_first(&node->rb_root); nd; nd = rb_next(nd)) { in callchain_node__set_folding_rb_tree() 558 for (nd = rb_first(chain); nd; nd = rb_next(nd)) { in callchain__set_folding() 922 node = rb_first(root); in hist_browser__show_callchain_flat() 1026 node = rb_first(roo in hist_browser__show_callchain_folded() [all...] |
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 419 next = rb_first(root); in btf_id__free_all() 823 next = rb_first(root); in __symbols_patch() 848 next = rb_first(&obj->sets); in sets_patch() 1044 next = rb_first(root); in free_kfuncs() 1097 for (next = rb_first(&obj->sets); next; next = rb_next(next)) { in collect_kfuncs() 1481 for (next = rb_first(&ctx.kfuncs); next; next = rb_next(next)) { in btf2btf()
|
| /linux/drivers/android/tests/ |
| H A D | binder_alloc_kunit.c | 430 n = rb_first(&alloc->allocated_buffers); in binder_alloc_test_mmap() 433 n = rb_first(&alloc->free_buffers); in binder_alloc_test_mmap()
|
| /linux/fs/xfs/scrub/ |
| H A D | bitmap.c | 63 for ((bn) = rb_entry_safe(rb_first(&(bitmap)->xb_root.rb_root), \ in INTERVAL_TREE_DEFINE() 338 for ((bn) = rb_entry_safe(rb_first(&(bitmap)->xb_root.rb_root), \ in INTERVAL_TREE_DEFINE()
|
| /linux/fs/jffs2/ |
| H A D | nodelist.h | 329 struct rb_node *node = rb_first(root); in frag_first() 361 #define tn_first(list) rb_entry(rb_first(list), struct jffs2_tmp_dnode_info, rb)
|
| /linux/tools/perf/ |
| H A D | builtin-kmem.c | 1034 next = rb_first(root); in __print_slab_result() 1087 struct rb_node *next = rb_first(&page_alloc_sorted); in __print_page_alloc_result() 1136 struct rb_node *next = rb_first(&page_caller_sorted); in __print_page_caller_result() 1323 node = rb_first(root); in sort_page_insert() 1370 node = rb_first(root); in sort_result()
|
| /linux/net/sched/ |
| H A D | sch_fq.c | 552 struct rb_node *p = rb_first(&q->delayed); in fq_enqueue() 683 while ((p = rb_first(&q->delayed)) != NULL) { in fq_dequeue() 845 struct rb_node *p = rb_first(&flow->t_root); in fq_rehash() 877 while ((p = rb_first(root)) != NULL) { in fq_rehash() 909 while ((op = rb_first(oroot)) != NULL) { in fq_resize()
|
| /linux/fs/ext4/ |
| H A D | dir.c | 604 info->curr_node = rb_first(&info->root); in ext4_dx_readdir() 626 info->curr_node = rb_first(&info->root); in ext4_dx_readdir()
|