diff options
author | Min Xu <min.xu@min-info.net> | 2014-10-25 21:05:37 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-11-11 22:30:54 +0100 |
commit | 3cd467a8ef49a2f1d047c24a50832b5c82c405c8 (patch) | |
tree | ec759273eb20e654ded4d026f60fd20297805959 /firmware/src/os/req_ctx.h | |
parent | ab325fc295a23d04f27cc7300b12d2564e4d83e6 (diff) |
req_ctx: Keep statistic about number of req_ctx in given state
... and print this from a debug statement.
Diffstat (limited to 'firmware/src/os/req_ctx.h')
-rw-r--r-- | firmware/src/os/req_ctx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/src/os/req_ctx.h b/firmware/src/os/req_ctx.h index 1e53fa4..b576ffe 100644 --- a/firmware/src/os/req_ctx.h +++ b/firmware/src/os/req_ctx.h @@ -47,5 +47,6 @@ extern struct req_ctx *req_ctx_find_busy(void); extern void req_ctx_set_state(struct req_ctx *ctx, unsigned long new_state); extern void req_ctx_put(struct req_ctx *ctx); extern u_int8_t req_ctx_num(struct req_ctx *ctx); +unsigned int req_ctx_count(unsigned long state); #endif /* _REQ_CTX_H */ |