[FEATURE] Implement kernel -> user connection
[platform/core/system/swap-manager.git] / daemon / buffer.h
1 /*
2  *  DA manager
3  *
4  * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  *
8  * Cherepanov Vitaliy <v.cherepanov@samsung.com>
9  * Nikita Kalyazin    <n.kalyazin@samsung.com>
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License");
12  * you may not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  *
23  * Contributors:
24  * - Samsung RnD Institute Russia
25  *
26  */
27
28
29 #ifndef _BUFFER_
30 #define _BUFFER_
31
32 #include "da_protocol.h"
33
34 #define USER_EVENT_FILENAME "/sys/kernel/debug/swap/writer/raw"
35 #define BUF_FILENAME "/dev/swap_device"
36
37 int init_buf(void);
38 void exit_buf(void);
39 void flush_buf(void);
40 void wake_up_buf(void);
41 int write_to_buf(struct msg_data_t *msg);
42
43 #endif /* _BUFFER_ */