RB_REMOVE
RB_REMOVE(pidtree, &pids, p);
RB_REMOVE(pidtree, &pids, p);
RB_REMOVE(revoked_serial_tree, &rc->revoked_serials, rs);
RB_REMOVE(revoked_key_id_tree, &rc->revoked_key_ids, rki);
RB_REMOVE(revoked_blob_tree, &krl->revoked_keys, rb);
RB_REMOVE(revoked_blob_tree, &krl->revoked_sha1s, rb);
RB_REMOVE(revoked_blob_tree, &krl->revoked_sha256s, rb);
RB_REMOVE(revoked_serial_tree, rt, crs);
RB_REMOVE(revoked_serial_tree, rt, crs);
if (RB_REMOVE(penalties_by_expiry, by_expiry,
RB_REMOVE(penalties_by_addr, by_addr,
if (RB_REMOVE(penalties_by_expiry, by_expiry, p) != p ||
RB_REMOVE(penalties_by_addr, by_addr, p) != p)
if (RB_REMOVE(penalties_by_expiry, by_expiry, existing) != existing)
RB_REMOVE(pfr_ktablehead, ktables, kt);
RB_REMOVE(pfctl_anchor_global, &V_pf_anchors,
RB_REMOVE(pfctl_anchor_global, &V_pf_anchors, ruleset->anchor);
RB_REMOVE(pfctl_anchor_node, &parent->children,
RB_REMOVE(pfr_ktablehead, &pfr_ktables, kt);
RB_REMOVE(pfctl_statelim_ids, &pf->statelim_ids, stlim);
RB_REMOVE(pfctl_sourcelim_ids, &pf->sourcelim_ids, srlim);
RB_REMOVE(ttm_bo_device_buffer_objects,
RB_REMOVE(iommu_gas_entries_tree, &domain->rb_root, entry);
RB_REMOVE(evtchn_tree, &u->evtchns, evtchn);
RB_REMOVE(evtchn_tree, &u->evtchns, evtchn);
RB_REMOVE(evtchn_tree, &u->evtchns, evtchn);
RB_REMOVE(file_offset_head,
RB_REMOVE(file_offset_head, &priv_user->file_offset,
RB_REMOVE(file_offset_head, &priv_user->file_offset, offset);
RB_REMOVE(gref_tree_head, &priv_user->gref_tree, gref);
RB_REMOVE(gmap_tree_head, &priv_user->gmap_tree, gmap);
RB_REMOVE(gref_tree_head, &priv_user->gref_tree, gref);
RB_REMOVE(gmap_tree_head, &priv_user->gmap_tree, gmap);
RB_REMOVE(file_offset_head, &priv_user->file_offset, offset);
RB_REMOVE(autofs_node_tree, &parent->an_children, anp);
RB_REMOVE(tmpfs_dir, head, xde);
RB_REMOVE(tmpfs_dir, head, de);
RB_REMOVE(tmpfs_dir, &dnode->tn_dir.tn_dirhead, de);
RB_REMOVE(g_eli_key_tree, &sc->sc_ekeys_tree, key);
RB_REMOVE(g_eli_key_tree, &sc->sc_ekeys_tree, key);
if (RB_REMOVE(sysctl_oid_list, oidp->oid_parent, oidp))
RB_REMOVE(inotify_watch_tree, &sc->watches, watch);
RB_REMOVE(inotify_watch_tree, &sc->watches, watch);
RB_REMOVE(inotify_watch_tree, &sc->watches, watch);
tmp = RB_REMOVE(ovpn_kpeers, &sc->peers, peer);
RB_REMOVE(ip_msource_tree, &inm->inm_srcs, ims);
RB_REMOVE(ip_msource_tree, &inm->inm_srcs, ims);
RB_REMOVE(ip_msource_tree, &imf->imf_sources, ims);
RB_REMOVE(ip_msource_tree, &imf->imf_sources, ims);
RB_REMOVE(ip_msource_tree, &imf->imf_sources, ims);
if (RB_REMOVE(tcp_log_id_tree, &tcp_log_id_head, tlb) == NULL) {
RB_REMOVE(ip6_msource_tree, &inm->in6m_srcs, ims);
RB_REMOVE(ip6_msource_tree, &inm->in6m_srcs, ims);
RB_REMOVE(ip6_msource_tree, &imf->im6f_sources, ims);
RB_REMOVE(ip6_msource_tree, &imf->im6f_sources, ims);
RB_REMOVE(ip6_msource_tree, &imf->im6f_sources, ims);
RB_REMOVE(tap_tree, &ch->taps, tap);
RB_REMOVE(pf_source_tree, &srlim->pfsrlim_sources, sr);
RB_REMOVE(pf_source_ioc_tree, &srlim->pfsrlim_ioc_sources, sr);
RB_REMOVE(pf_sctp_endpoints, &V_pf_sctp_endpoints, ep);
RB_REMOVE(pf_sctp_endpoints, &V_pf_sctp_endpoints, ep);
RB_REMOVE(pfi_ifhead, &V_pfi_ifs, p);
RB_REMOVE(pfi_ifhead, &V_pfi_ifs, kif);
RB_REMOVE(pfi_ifhead, &V_pfi_ifs, kif);
RB_REMOVE(pf_statelim_id_tree, &V_pf_statelim_id_tree_inactive,
RB_REMOVE(pf_statelim_id_tree, &V_pf_statelim_id_tree_active,
RB_REMOVE(pf_source_tree, &pfsrlim->pfsrlim_sources, pfsr);
RB_REMOVE(pf_source_ioc_tree, &pfsrlim->pfsrlim_ioc_sources,
RB_REMOVE(pf_sourcelim_id_tree, &V_pf_sourcelim_id_tree_active,
RB_REMOVE(pf_source_tree, &pfsrlim->pfsrlim_sources, pfsr);
RB_REMOVE(pf_source_ioc_tree, &pfsrlim->pfsrlim_ioc_sources, pfsr);
RB_REMOVE(pf_krule_global,
RB_REMOVE(pf_frag_tree, &frnode->fn_tree, frag);
RB_REMOVE(pf_frnode_tree, &V_pf_frnode_tree, frnode);
RB_REMOVE(pf_kanchor_global, &V_pf_anchors,
RB_REMOVE(pf_kanchor_global, &V_pf_anchors, ruleset->anchor);
RB_REMOVE(pf_kanchor_node, &parent->children,
RB_REMOVE(pf_keth_anchor_global, &V_pf_keth_anchors,
RB_REMOVE(pf_keth_anchor_global, &V_pf_keth_anchors, ruleset->anchor);
RB_REMOVE(pf_keth_anchor_node, &parent->children,
RB_REMOVE(pfr_ktablehead, &V_pfr_ktables, kt);
RB_REMOVE(pvo_tree, &pvo->pvo_pmap->pmap_pvo, pvo);
RB_REMOVE(pvo_tree, &pvo->pvo_pmap->pmap_pvo, pvo);
RB_REMOVE(nl_data_t, &rpcnl_clients, nl);
RB_REMOVE(upsock_t, &upcall_sockets, upsp);
removed = RB_REMOVE(upsock_t, &upcall_sockets, ups);
RB_REMOVE(name, head, elm); \
RB_REMOVE(fict_tree, &vm_phys_fictitious_tree, seg);
ATF_CHECK_EQ(tmp, RB_REMOVE(tree, &root, tmp));
RB_REMOVE(inodetree, tree, ino);
RB_REMOVE(mmio_rb_tree, &mmio_rb_root, entry);
RB_REMOVE(cert_tree, tree, cert);
RB_REMOVE(file_tree, &files, file);
RB_REMOVE(cert_tree, &extra, cert);
RB_REMOVE(cert_tree, &untrusted, other);
RB_REMOVE(inode_map_tree,
RB_REMOVE(user_name_tree, env->sc_user_names,
RB_REMOVE(user_name_tree, env->sc_user_names, &ukey);
RB_REMOVE(group_name_tree, env->sc_group_names,
RB_REMOVE(group_name_tree, env->sc_group_names, &gkey);
RB_REMOVE(user_name_tree,
RB_REMOVE(group_name_tree,
RB_REMOVE(user_name_tree, env->sc_user_names,
RB_REMOVE(group_name_tree,