Displaying 1 result from an estimated 1 matches for "memstr".
Did you mean:
memptr
2004 Jul 16
1
/proc/xen/memory_target patch
...urn -1;
}
balloon_pde->write_proc = balloon_write;
return 0;
}
--- 222,307 ----
return ret;
}
+ #define PAGE_TO_MB_SHIFT 8
+
static int balloon_write(struct file *file, const char *buffer,
u_long count, void *data)
{
! char memstring[64], *endchar;
! int len, i, pages;
! unsigned long long target;
/* Only admin can play with the balloon :) */
if ( !capable(CAP_SYS_ADMIN) )
return -EPERM;
! if (count>sizeof memstring) {
! return -EFBIG;
! }
!
! len = strnlen_user(buffer...