Home Home > GIT Browse
summaryrefslogtreecommitdiff
blob: 5b8de53fd4cc0628dc535acc6a1c5a7aaa339750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _KGR_SHADOW_H
#define _KGR_SHADOW_H

void *klp_shadow_get(void *obj, unsigned long id);
void *klp_shadow_alloc(void *obj, unsigned long id, void *data,
		       size_t size, gfp_t gfp_flags);
void *klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
			      size_t size, gfp_t gfp_flags);
void klp_shadow_free(void *obj, unsigned long id);
void klp_shadow_free_all(unsigned long id);
int kgr_shadow_init(void);
void kgr_shadow_cleanup(void);

#define KGR_SHADOW_ID(bsc, id) (((unsigned long)(bsc) << 6) | id)

#endif