Issue reported by JD Begin.
Change-Id: I0306d9dc43c36107897c8b73ed340d86a8dcef27
/*===========================================================================*
* rule_ctl *
*===========================================================================*/
-int rule_ctl(int request, endpoint_t endpt, cp_grant_id_t grant)
+int rule_ctl(unsigned long request, endpoint_t endpt, cp_grant_id_t grant)
{
/* Handle an I/O control request regarding rules. */
fbd_rulenum_t i;
#define MAX_RULES 16
-extern int rule_ctl(int request, endpoint_t endpt, cp_grant_id_t grant);
+extern int rule_ctl(unsigned long request, endpoint_t endpt,
+ cp_grant_id_t grant);
extern int rule_find(u64_t pos, size_t size, int flag);
int flags);
extern ssize_t bdev_scatter(dev_t dev, u64_t pos, iovec_t *vec, int count,
int flags);
-extern int bdev_ioctl(dev_t dev, int request, void *buf,
+extern int bdev_ioctl(dev_t dev, unsigned long request, void *buf,
endpoint_t user_endpt);
/* Asynchronous API. */
int count, int flags, bdev_callback_t callback, bdev_param_t param);
extern bdev_id_t bdev_scatter_asyn(dev_t dev, u64_t pos, iovec_t *vec,
int count, int flags, bdev_callback_t callback, bdev_param_t param);
-extern bdev_id_t bdev_ioctl_asyn(dev_t dev, int request, void *buf,
+extern bdev_id_t bdev_ioctl_asyn(dev_t dev, unsigned long request, void *buf,
endpoint_t user_endpt, bdev_callback_t callback, bdev_param_t param);
extern int bdev_wait_asyn(bdev_id_t id);
int flags;
endpoint_t user;
- int request;
+ unsigned long request;
uint8_t padding[16];
} mess_lbdev_lblockdriver_msg;
off_t pos;
cp_grant_id_t grant;
size_t count;
- int request;
+ unsigned long request;
int flags;
endpoint_t id;
endpoint_t user;
return bdev_vrdwt(BDEV_SCATTER, dev, pos, vec, count, flags);
}
-static int bdev_ioctl_setup(dev_t dev, int request, void *buf,
+static int bdev_ioctl_setup(dev_t dev, unsigned long request, void *buf,
endpoint_t user_endpt, message *m)
{
/* Set up an I/O control request.
cpf_revoke(m->m_lbdev_lblockdriver_msg.grant);
}
-int bdev_ioctl(dev_t dev, int request, void *buf, endpoint_t user_endpt)
+int bdev_ioctl(dev_t dev, unsigned long request, void *buf,
+ endpoint_t user_endpt)
{
/* Perform a synchronous I/O control request.
*/
param);
}
-bdev_id_t bdev_ioctl_asyn(dev_t dev, int request, void *buf,
+bdev_id_t bdev_ioctl_asyn(dev_t dev, unsigned long request, void *buf,
endpoint_t user_endpt, bdev_callback_t callback, bdev_param_t param)
{
/* Perform an asynchronous I/O control request.
"closing a subpartition");
}
-static int vir_ioctl(dev_t minor, int req, void *ptr, ssize_t exp,
+static int vir_ioctl(dev_t minor, unsigned long req, void *ptr, ssize_t exp,
result_t *res)
{
/* Perform an I/O control request, using a local buffer.