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; }
static int sys_rtdm_close(struct pt_regs *regs) { return __rt_dev_close(current, __xn_reg_arg1(regs)); }
static RTAI_SYSCALL_MODE int sys_rtdm_close(long fd, long forced) { return __rt_dev_close(current, fd); }