src/bus/name.c
/**
 * name_registry_get_activation_stats_for() - calculate activation-statistics
 *                                            for a peer
 * @registry:           object to operate on
 * @owner_id:           unique ID of the name owner to calculate stats for
 * @n_bytesp:           return argument for total numbers of accounted bytes
 * @n_fdsp:             return argument for total numbers of accounted fds
 *
 * This calculates the statistics for all pending activation messages of a
 * given owner on any names. Note that this information is not indexed, so it
 * is calculated by traversing all names and pending activation messages. You
 * must not use this for anything but debugging.
 */
calculate activation-statistics
for a peer
@registry:           object to operate on
@owner_id:           unique ID of the name owner to calculate stats for
@n_bytesp:           return argument for total numbers of accounted bytes
@n_fdsp:             return argument for total numbers of accounted fds

This calculates the statistics for all pending activation messages of a
given owner on any names. Note that this information is not indexed, so it
is calculated by traversing all names and pending activation messages. You
must not use this for anything but debugging.
calculate activation - statistics for a peer @registry : object to operate on @owner_id : unique ID of the name owner to calculate stats for @n_bytesp : return argument for total numbers of accounted bytes @n_fdsp : return argument for total numbers of accounted fds This calculates the statistics for all pending activation messages of a given owner on any names . Note that this information is not indexed so it is calculated by traversing all names and pending activation messages . You must not use this for anything but debugging .
void name_registry_get_activation_stats_for(NameRegistry *registry,
                                            uint64_t owner_id,
                                            unsigned int *n_bytesp,
                                            unsigned int *n_fdsp) {
        unsigned int n_bytes, n_fds;
        Name *name;
        *n_bytesp = 0;
        *n_fdsp = 0;
        c_rbtree_for_each_entry(name, &registry->name_tree, registry_node) {
                if (name->activation) {
                        activation_get_stats_for(name->activation, owner_id,
                                                 &n_bytes, &n_fds);
                        *n_bytesp += n_bytes;
                        *n_fdsp += n_fds;
                }
        }
}
void name_registry_get_activation_stats_for ( NameRegistry * registry , uint64_t owner_id , unsigned int * n_bytesp , unsigned int * n_fdsp ) { unsigned int n_bytes , n_fds ; Name * name ; * n_bytesp = 0 ; * n_fdsp = 0 ; c_rbtree_for_each_entry ( name , & registry -> name_tree , registry_node ) { if ( name -> activation ) { activation_get_stats_for ( name -> activation , owner_id , & n_bytes , & n_fds ) ; * n_bytesp += n_bytes ; * n_fdsp += n_fds ; } } }
name_registry_get_activation_stats_for() - calculate activation-statistics
                                            for a peer
 @registry:           object to operate on
 @owner_id:           unique ID of the name owner to calculate stats for
 @n_bytesp:           return argument for total numbers of accounted bytes
 @n_fdsp:             return argument for total numbers of accounted fds
name_registry_get_activation_stats_for () - calculate activation - statistics for a peer @registry : object to operate on @owner_id : unique ID of the name owner to calculate stats for @n_bytesp : return argument for total numbers of accounted bytes @n_fdsp : return argument for total numbers of accounted fds