Lines Matching refs:ctl_table

51 static int appldata_timer_handler(struct ctl_table *ctl, int write,
53 static int appldata_interval_handler(struct ctl_table *ctl, int write,
58 static struct ctl_table appldata_table[] = {
72 static struct ctl_table appldata_dir_table[] = {
204 appldata_timer_handler(struct ctl_table *ctl, int write, in appldata_timer_handler()
246 appldata_interval_handler(struct ctl_table *ctl, int write, in appldata_interval_handler()
290 appldata_generic_handler(struct ctl_table *ctl, int write, in appldata_generic_handler()
303 if (&tmp_ops->ctl_table[2] == ctl) { in appldata_generic_handler()
392 ops->ctl_table = kzalloc(4 * sizeof(struct ctl_table), GFP_KERNEL); in appldata_register_ops()
393 if (!ops->ctl_table) in appldata_register_ops()
400 ops->ctl_table[0].procname = appldata_proc_name; in appldata_register_ops()
401 ops->ctl_table[0].maxlen = 0; in appldata_register_ops()
402 ops->ctl_table[0].mode = S_IRUGO | S_IXUGO; in appldata_register_ops()
403 ops->ctl_table[0].child = &ops->ctl_table[2]; in appldata_register_ops()
405 ops->ctl_table[2].procname = ops->name; in appldata_register_ops()
406 ops->ctl_table[2].mode = S_IRUGO | S_IWUSR; in appldata_register_ops()
407 ops->ctl_table[2].proc_handler = appldata_generic_handler; in appldata_register_ops()
408 ops->ctl_table[2].data = ops; in appldata_register_ops()
410 ops->sysctl_header = register_sysctl_table(ops->ctl_table); in appldata_register_ops()
418 kfree(ops->ctl_table); in appldata_register_ops()
433 kfree(ops->ctl_table); in appldata_unregister_ops()