]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: ring_cast_from_area() cast from an allocated area
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 27 Sep 2022 13:53:53 +0000 (15:53 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 13 Oct 2022 14:45:28 +0000 (16:45 +0200)
commit9e4ead30953f964cf2f9f6738e432a267d857cb7
tree2e2de04fde3cfc4bc406e0d1217d0d81dc2b2fd4
parent91b2305ad79bb7086840797b6e98bd791992444f
MINOR: ring: ring_cast_from_area() cast from an allocated area

Cast an unified ring + storage area to a ring from area, without
reinitializing the data buffer. Reinitialize the waiters and the lock.

It helps retrieving a previously allocated ring, from an mmap for
example.
include/haproxy/ring.h
src/ring.c