Lines Matching defs:ctl
3541 static int proc_unres_qlen(struct ctl_table *ctl, int write,
3545 struct ctl_table tmp = *ctl;
3551 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN);
3555 *(int *)ctl->data = size * SKB_TRUESIZE(ETH_FRAME_LEN);
3576 static void neigh_proc_update(struct ctl_table *ctl, int write)
3578 struct net_device *dev = ctl->extra1;
3579 struct neigh_parms *p = ctl->extra2;
3581 int index = (int *) ctl->data - p->data;
3593 static int neigh_proc_dointvec_zero_intmax(struct ctl_table *ctl, int write,
3597 struct ctl_table tmp = *ctl;
3604 neigh_proc_update(ctl, write);
3608 static int neigh_proc_dointvec_ms_jiffies_positive(struct ctl_table *ctl, int write,
3611 struct ctl_table tmp = *ctl;
3620 neigh_proc_update(ctl, write);
3624 int neigh_proc_dointvec(struct ctl_table *ctl, int write, void *buffer,
3627 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
3629 neigh_proc_update(ctl, write);
3634 int neigh_proc_dointvec_jiffies(struct ctl_table *ctl, int write, void *buffer,
3637 int ret = proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos);
3639 neigh_proc_update(ctl, write);
3644 static int neigh_proc_dointvec_userhz_jiffies(struct ctl_table *ctl, int write,
3648 int ret = proc_dointvec_userhz_jiffies(ctl, write, buffer, lenp, ppos);
3650 neigh_proc_update(ctl, write);
3654 int neigh_proc_dointvec_ms_jiffies(struct ctl_table *ctl, int write,
3657 int ret = proc_dointvec_ms_jiffies(ctl, write, buffer, lenp, ppos);
3659 neigh_proc_update(ctl, write);
3664 static int neigh_proc_dointvec_unres_qlen(struct ctl_table *ctl, int write,
3668 int ret = proc_unres_qlen(ctl, write, buffer, lenp, ppos);
3670 neigh_proc_update(ctl, write);
3674 static int neigh_proc_base_reachable_time(struct ctl_table *ctl, int write,
3678 struct neigh_parms *p = ctl->extra2;
3681 if (strcmp(ctl->procname, "base_reachable_time") == 0)
3682 ret = neigh_proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos);
3683 else if (strcmp(ctl->procname, "base_reachable_time_ms") == 0)
3684 ret = neigh_proc_dointvec_ms_jiffies(ctl, write, buffer, lenp, ppos);