Home
last modified time | relevance | path

Searched refs:dioctl (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/isdn/divert/
Ddivert_procfs.c185 divert_ioctl dioctl; in isdn_divert_ioctl_unlocked() local
191 if (copy_from_user(&dioctl, (void __user *) arg, sizeof(dioctl))) in isdn_divert_ioctl_unlocked()
196 dioctl.drv_version = DIVERT_IIOC_VERSION; /* set version */ in isdn_divert_ioctl_unlocked()
200 if ((dioctl.getid.drvid = divert_if.name_to_drv(dioctl.getid.drvnam)) < 0) in isdn_divert_ioctl_unlocked()
205 cp = divert_if.drv_to_name(dioctl.getid.drvid); in isdn_divert_ioctl_unlocked()
210 strcpy(dioctl.getid.drvnam, cp); in isdn_divert_ioctl_unlocked()
214 if (!(rulep = getruleptr(dioctl.getsetrule.ruleidx))) in isdn_divert_ioctl_unlocked()
216 dioctl.getsetrule.rule = *rulep; /* copy data */ in isdn_divert_ioctl_unlocked()
220 if (!(rulep = getruleptr(dioctl.getsetrule.ruleidx))) in isdn_divert_ioctl_unlocked()
223 *rulep = dioctl.getsetrule.rule; /* copy data */ in isdn_divert_ioctl_unlocked()
[all …]