blob: 3abdf774253d6306f6f577f255b1e0bddbf9337d [file] [log] [blame]
Yida Wang0bf43bd2017-03-22 18:16:31 -04001/*
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
21int ringbuf_init(struct seemp_logk_dev *sdev);
22struct seemp_logk_blk *ringbuf_fetch_wr_block
23(struct seemp_logk_dev *sdev);
24void ringbuf_finish_writer(struct seemp_logk_dev *sdev,
25 struct seemp_logk_blk *blk);
26void ringbuf_cleanup(struct seemp_logk_dev *sdev);
27int ringbuf_count_marked(struct seemp_logk_dev *sdev);
28
29#endif