buf_ring.9 (230787) | buf_ring.9 (233648) |
---|---|
1.\" Copyright (c) 2009 Bitgravity Inc 2.\" Written by: Kip Macy <kmacy@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" | 1.\" Copyright (c) 2009 Bitgravity Inc 2.\" Written by: Kip Macy <kmacy@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" |
26.\" $FreeBSD: head/share/man/man9/buf_ring.9 230787 2012-01-30 21:02:25Z brueffer $ | 26.\" $FreeBSD: head/share/man/man9/buf_ring.9 233648 2012-03-29 05:02:12Z eadler $ |
27.\" 28.Dd January 30, 2012 29.Dt BUF_RING 9 30.Os 31.Sh NAME 32.Nm buf_ring , 33.Nm buf_ring_alloc , 34.Nm buf_ring_free , --- 28 unchanged lines hidden (view full) --- 63.Ft int 64.Fn buf_ring_full "struct buf_ring *br" 65.Ft void * 66.Fn buf_ring_peek "struct buf_ring *br" 67.Sh DESCRIPTION 68The 69.Nm 70functions provide a lock-less multi-producer and lock-less multi-consumer as | 27.\" 28.Dd January 30, 2012 29.Dt BUF_RING 9 30.Os 31.Sh NAME 32.Nm buf_ring , 33.Nm buf_ring_alloc , 34.Nm buf_ring_free , --- 28 unchanged lines hidden (view full) --- 63.Ft int 64.Fn buf_ring_full "struct buf_ring *br" 65.Ft void * 66.Fn buf_ring_peek "struct buf_ring *br" 67.Sh DESCRIPTION 68The 69.Nm 70functions provide a lock-less multi-producer and lock-less multi-consumer as |
71well as single-consumer ring buffer. | 71well as single-consumer ring buffer. |
72.Pp 73The 74.Fn buf_ring_alloc 75function is used to allocate a buf_ring ring buffer with 76.Fa count 77slots using malloc_type 78.Fa type 79and memory flags --- 65 unchanged lines hidden --- | 72.Pp 73The 74.Fn buf_ring_alloc 75function is used to allocate a buf_ring ring buffer with 76.Fa count 77slots using malloc_type 78.Fa type 79and memory flags --- 65 unchanged lines hidden --- |