Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.11-rc1 33 lines 1.1 kB view raw
1/* 2 * zbud.h 3 * 4 * Copyright (c) 2010-2012, Dan Magenheimer, Oracle Corp. 5 * 6 */ 7 8#ifndef _ZBUD_H_ 9#define _ZBUD_H_ 10 11#include "tmem.h" 12 13struct zbudref; 14 15extern unsigned int zbud_max_buddy_size(void); 16extern struct zbudref *zbud_match_prep(struct tmem_handle *th, bool eph, 17 void *cdata, unsigned size); 18extern struct zbudref *zbud_create_prep(struct tmem_handle *th, bool eph, 19 void *cdata, unsigned size, 20 struct page *newpage); 21extern void zbud_create_finish(struct zbudref *, bool); 22extern int zbud_decompress(struct page *, struct zbudref *, bool, 23 void (*func)(char *, unsigned int, char *)); 24extern int zbud_copy_from_zbud(char *, struct zbudref *, size_t *, bool); 25extern int zbud_copy_to_zbud(struct zbudref *, char *, bool); 26extern struct page *zbud_free_and_delist(struct zbudref *, bool eph, 27 unsigned int *, unsigned int *); 28extern struct page *zbud_evict_pageframe_lru(unsigned int *, unsigned int *); 29extern unsigned int zbud_make_zombie_lru(struct tmem_handle *, unsigned char **, 30 unsigned int *, bool); 31extern void zbud_init(void); 32 33#endif /* _ZBUD_H_ */