ARM: tizen_tm1_defconfig: Enable missing features related with CGROUPS
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / kernel / swap / us_manager / img / img_file.h
1 /**
2  * @file us_manager/img/img_file.h
3  * @author Vyacheslav Cherkashin <v.cherkashin@samsung.com>
4  *
5  * @section LICENSE
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  *
20  * @section COPYRIGHT
21  * Copyright (C) Samsung Electronics, 2013
22  *
23  */
24
25
26 #ifndef _IMG_FILE_H
27 #define _IMG_FILE_H
28
29 #include <linux/types.h>
30
31 struct probe_info;
32
33 /**
34  * @struct img_file
35  * @breaf Image of file
36  */
37 struct img_file {
38         struct list_head list;          /**< For img_proc */
39         struct dentry *dentry;          /**< Dentry of file */
40         struct list_head ip_list;       /**< For img_ip */
41 };
42
43 struct img_file *create_img_file(struct dentry *dentry);
44 void free_img_file(struct img_file *ip);
45
46 int img_file_add_ip(struct img_file *file, unsigned long addr,
47                     struct probe_info *probe_i);
48 int img_file_del_ip(struct img_file *file, unsigned long addr);
49
50 int img_file_empty(struct img_file *file);
51
52 /* debug */
53 void img_file_print(struct img_file *file);
54 /* debug */
55
56 #endif /* _IMG_FILE_H */
57