OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/rx/rx_stats.c File Reference

Code for handling statistics gathering within RX, and for mapping the internal representation into an external one. More...

#include <afsconfig.h>
#include <afs/param.h>
#include <roken.h>
#include <afs/opr.h>
#include "rx.h"
#include "rx_atomic.h"
#include "rx_stats.h"

Functions

struct rx_statisticsrx_GetStatistics (void)
 Return the internal statistics collected by rx.
void rx_FreeStatistics (struct rx_statistics **stats)
 Free a statistics block allocated by rx_GetStatistics.

Variables

struct rx_statisticsAtomic rx_stats
 rx_stats_mutex protects the non-atomic members of the rx_stats structure

Detailed Description

Code for handling statistics gathering within RX, and for mapping the internal representation into an external one.


Function Documentation

void rx_FreeStatistics ( struct rx_statistics **  stats)

Free a statistics block allocated by rx_GetStatistics.

Parameters:
statsThe statistics block to free
struct rx_statistics* rx_GetStatistics ( void  ) [read]

Return the internal statistics collected by rx.

Returns:
A statistics structure which must be freed using rx_FreeStatistics Takes, and releases rx_stats_mutex
 All Data Structures Files Functions Variables