Yida Wang | 0bf43bd | 2017-03-22 18:16:31 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef __SEEMP_RINGBUF_H__ |
| 15 | #define __SEEMP_RINGBUF_H__ |
| 16 | |
| 17 | /* |
| 18 | * This header exports pingpong's API |
| 19 | */ |
| 20 | |
| 21 | int ringbuf_init(struct seemp_logk_dev *sdev); |
| 22 | struct seemp_logk_blk *ringbuf_fetch_wr_block |
| 23 | (struct seemp_logk_dev *sdev); |
| 24 | void ringbuf_finish_writer(struct seemp_logk_dev *sdev, |
| 25 | struct seemp_logk_blk *blk); |
| 26 | void ringbuf_cleanup(struct seemp_logk_dev *sdev); |
| 27 | int ringbuf_count_marked(struct seemp_logk_dev *sdev); |
| 28 | |
| 29 | #endif |