/* Return 0 on success, or %-EBUSY if specified region wasn't free (not all bits were zero).  */
int bitmap_allocate_region(unsigned long *bitmap, int pos, int order)
/* Return 0 on success, or %-EBUSY if specified region wasn't free (not all bits were zero).  */
int bitmap_allocate_region(unsigned long *bitmap, int pos, int order)
{
	if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE))
		return -EBUSY;
	__reg_op(bitmap, pos, order, REG_OP_ALLOC);
	return 0;
}