Exemplo n.º 1
0
static int floppy_ioctl(struct block_device *bdev, fmode_t mode,
				 unsigned int cmd, unsigned long param)
{
	int ret;

	mutex_lock(&swim3_mutex);
	ret = floppy_locked_ioctl(bdev, mode, cmd, param);
	mutex_unlock(&swim3_mutex);

	return ret;
}
Exemplo n.º 2
0
static int floppy_ioctl(struct block_device *bdev, fmode_t mode,
				 unsigned int cmd, unsigned long param)
{
	int ret;

	lock_kernel();
	ret = floppy_locked_ioctl(bdev, mode, cmd, param);
	unlock_kernel();

	return ret;
}