balloon.h (f81483aaeb59da530b286fe5d081e1705eb5c886) | balloon.h (9dd060afe2dfd4e3f67b6732fdc681e52cd7cbd9) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/****************************************************************************** 3 * Xen balloon functionality 4 */ 5#ifndef _XEN_BALLOON_H 6#define _XEN_BALLOON_H 7 8#define RETRY_UNLIMITED 0 --- 12 unchanged lines hidden (view full) --- 21 unsigned long retry_count; 22 unsigned long max_retry_count; 23}; 24 25extern struct balloon_stats balloon_stats; 26 27void balloon_set_new_target(unsigned long target); 28 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/****************************************************************************** 3 * Xen balloon functionality 4 */ 5#ifndef _XEN_BALLOON_H 6#define _XEN_BALLOON_H 7 8#define RETRY_UNLIMITED 0 --- 12 unchanged lines hidden (view full) --- 21 unsigned long retry_count; 22 unsigned long max_retry_count; 23}; 24 25extern struct balloon_stats balloon_stats; 26 27void balloon_set_new_target(unsigned long target); 28 |
29int xen_alloc_ballooned_pages(unsigned int nr_pages, struct page **pages); 30void xen_free_ballooned_pages(unsigned int nr_pages, struct page **pages); 31 |
|
29#ifdef CONFIG_XEN_BALLOON 30void xen_balloon_init(void); 31#else 32static inline void xen_balloon_init(void) 33{ 34} 35#endif 36 37#endif /* _XEN_BALLOON_H */ | 32#ifdef CONFIG_XEN_BALLOON 33void xen_balloon_init(void); 34#else 35static inline void xen_balloon_init(void) 36{ 37} 38#endif 39 40#endif /* _XEN_BALLOON_H */ |