Lines Matching refs:ctl_table
53 static int appldata_timer_handler(ctl_table *ctl, int write,
55 static int appldata_interval_handler(ctl_table *ctl, int write,
60 static struct ctl_table appldata_table[] = {
74 static struct ctl_table appldata_dir_table[] = {
247 appldata_timer_handler(ctl_table *ctl, int write, in appldata_timer_handler()
289 appldata_interval_handler(ctl_table *ctl, int write, in appldata_interval_handler()
335 appldata_generic_handler(ctl_table *ctl, int write, in appldata_generic_handler()
347 if (&tmp_ops->ctl_table[2] == ctl) { in appldata_generic_handler()
435 ops->ctl_table = kzalloc(4 * sizeof(struct ctl_table), GFP_KERNEL); in appldata_register_ops()
436 if (!ops->ctl_table) in appldata_register_ops()
443 ops->ctl_table[0].procname = appldata_proc_name; in appldata_register_ops()
444 ops->ctl_table[0].maxlen = 0; in appldata_register_ops()
445 ops->ctl_table[0].mode = S_IRUGO | S_IXUGO; in appldata_register_ops()
446 ops->ctl_table[0].child = &ops->ctl_table[2]; in appldata_register_ops()
448 ops->ctl_table[2].procname = ops->name; in appldata_register_ops()
449 ops->ctl_table[2].mode = S_IRUGO | S_IWUSR; in appldata_register_ops()
450 ops->ctl_table[2].proc_handler = appldata_generic_handler; in appldata_register_ops()
451 ops->ctl_table[2].data = ops; in appldata_register_ops()
453 ops->sysctl_header = register_sysctl_table(ops->ctl_table); in appldata_register_ops()
461 kfree(ops->ctl_table); in appldata_register_ops()
476 kfree(ops->ctl_table); in appldata_unregister_ops()