Displaying 1 result from an estimated 1 matches for "inflate_balloon".
Did you mean:
deflate_balloon
2004 Jul 16
1
/proc/xen/memory_target patch
...oid *data)
{
! user_balloon_op_t bop;
/* Only admin can play with the balloon :) */
if ( !capable(CAP_SYS_ADMIN) )
return -EPERM;
! if ( copy_from_user(&bop, buffer, sizeof(bop)) )
return -EFAULT;
! switch ( bop.op )
! {
! case USER_INFLATE_BALLOON:
! if ( inflate_balloon(bop.size) < bop.size )
! return -EAGAIN;
! break;
!
! case USER_DEFLATE_BALLOON:
! deflate_balloon(bop.size);
! break;
! default:
! printk("Unknown command to balloon driver.");
! re...