$Revision: 1.9 $
Radix payload (rp) - user level functions for storing data in radix trees
rp_load = user level tree maintenance (knows about registries and attributes)
Status: NOT REVIEWED, TESTED
Design and implementation by: Marek Bukowy
Prototyped in: | /home/shane/code/RIP/include/rp.h | |
Calls: | NOERR() | er/er.c |
rp_init_attr_tree() | rp/rp_tree.c | |
Called by: | set_initrx() | pc/pc_commands.c |
put into LL of trees; handle alloc err ???er_ret_t RP_tree_add ( rp_regid_t reg_id, rp_attr_t attr, char* prefixstr, rx_mem_mt mem_mode, rx_subtree_mt subtrees )
since other threads are supposed to be reading already, must create the tree locked and observe the forest mutex.
Prototyped in: | /home/shane/code/RIP/include/rp.h | |
Calls: | RP_attr2fam() | rp/rp_convert.c |
RP_tree_del() | rp/rp_tree.c | |
RP_tree_get() | rp/rp_tree.c | |
RX_tree_cre(), TH_acquire_write_lockw(), TH_release_write_lockw(), UT_free_real(), UT_malloc_real(), g_list_append() | ||
Called by: | rp_init_attr_tree() | rp/rp_tree.c |
References Variables: | rx_forest | rp/rp_tree.c |
rx_forest_rwlock | rp/rp_tree.c |
finds a tree and deletes its contents the tree itself is not deleted !er_ret_t RP_tree_del ( rx_tree_t* tree )
Returns: RX_OK or RX_NOTREE if no such tree can be found.
Prototyped in: | /home/shane/code/RIP/include/rp.h | |
Calls: | ER_inf_va() | er/er.c |
ER_perror() | er/er.c | |
rx_delete_tree() | ||
Called by: | RP_tree_add() | rp/rp_tree.c |
finds a tree matching the specified criteria(registry+space+family+tid).er_ret_t RP_tree_get ( rx_tree_t** treeptr, rp_regid_t reg_id, ip_space_t spc_id, rp_attr_t attr )
MT-note: locks/unlocks forest (still to be done)
Returns: RX_OK or RX_NOTREE if no such tree can be found.
Prototyped in: | /home/shane/code/RIP/include/rp.h | |
Calls: | ER_dbg_va() | er/er.c |
TH_acquire_read_lockw(), TH_release_read_lockw(), g_list_first() | ||
Called by: | RP_asc_search() | rp/rp_search.c |
RP_sql_load_attr_space() | rp/rp_load.c | |
RP_tree_add() | rp/rp_tree.c | |
References Variables: | rx_forest | rp/rp_tree.c |
rx_forest_rwlock | rp/rp_tree.c |
Calls: | RP_attr2spc() | rp/rp_convert.c |
RP_tree_add() | rp/rp_tree.c | |
Called by: | RP_init_trees() | rp/rp_tree.c |
Included from: | /usr/include/time.h | |
Calls: | __posix_asctime_r() |
Included from: | /usr/include/time.h | |
Calls: | __posix_ctime_r() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_getlogin_r() |
Included from: | /usr/include/dirent.h | |
Calls: | __posix_readdir_r() |
Included from: | /usr/include/signal.h | |
Calls: | __posix_sigwait() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_ttyname_r() |