Example #1
0
File: proc.c Project: ArcEye/RTAI
static ssize_t openfd_store(struct xnvfile_input *input)
{
	ssize_t ret, cret;
	long val;

	ret = xnvfile_get_integer(input, &val);
	if (ret < 0)
		return ret;

	cret = __rt_dev_close(current, (int)val);
	if (cret < 0)
		return cret;

	return ret;
}
Example #2
0
static int sys_rtdm_close(struct pt_regs *regs)
{
	return __rt_dev_close(current, __xn_reg_arg1(regs));
}
Example #3
0
static RTAI_SYSCALL_MODE int sys_rtdm_close(long fd, long forced)
{
	return __rt_dev_close(current, fd);
}