]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: add a generic CLI io_handler to dump a ring buffer
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 09:55:39 +0000 (11:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 15:14:19 +0000 (17:14 +0200)
commit072931cdcbe29e4b4abe525831641cd44a0481c3
treecaa64ed6eed6de0c38dc3ca874825a4a7c33643b
parentbe97853c2f9f5d93a0724941034cefcdbf77ebac
MINOR: ring: add a generic CLI io_handler to dump a ring buffer

The three functions (attach, IO handler, and release) are meant to be
called by any CLI command which requires to dump the contents of a ring
buffer. We do not implement anything generic to dump any ring buffer on
the CLI since it's meant to be used by other functionalities above.
However these functions deal with locking and everything so it's trivial
to embed them in other code.
include/proto/ring.h
src/ring.c