Lines Matching refs:ctl_table
53 static int appldata_timer_handler(struct ctl_table *ctl, int write,
55 static int appldata_interval_handler(struct ctl_table *ctl, int write,
60 static struct ctl_table appldata_table[] = {
74 static struct ctl_table appldata_dir_table[] = {
219 appldata_timer_handler(struct ctl_table *ctl, int write, in appldata_timer_handler()
224 struct ctl_table ctl_entry = { in appldata_timer_handler()
252 appldata_interval_handler(struct ctl_table *ctl, int write, in appldata_interval_handler()
257 struct ctl_table ctl_entry = { in appldata_interval_handler()
282 appldata_generic_handler(struct ctl_table *ctl, int write, in appldata_generic_handler()
289 struct ctl_table ctl_entry = { in appldata_generic_handler()
300 if (&tmp_ops->ctl_table[2] == ctl) { in appldata_generic_handler()
370 ops->ctl_table = kcalloc(4, sizeof(struct ctl_table), GFP_KERNEL); in appldata_register_ops()
371 if (!ops->ctl_table) in appldata_register_ops()
378 ops->ctl_table[0].procname = appldata_proc_name; in appldata_register_ops()
379 ops->ctl_table[0].maxlen = 0; in appldata_register_ops()
380 ops->ctl_table[0].mode = S_IRUGO | S_IXUGO; in appldata_register_ops()
381 ops->ctl_table[0].child = &ops->ctl_table[2]; in appldata_register_ops()
383 ops->ctl_table[2].procname = ops->name; in appldata_register_ops()
384 ops->ctl_table[2].mode = S_IRUGO | S_IWUSR; in appldata_register_ops()
385 ops->ctl_table[2].proc_handler = appldata_generic_handler; in appldata_register_ops()
386 ops->ctl_table[2].data = ops; in appldata_register_ops()
388 ops->sysctl_header = register_sysctl_table(ops->ctl_table); in appldata_register_ops()
396 kfree(ops->ctl_table); in appldata_register_ops()
411 kfree(ops->ctl_table); in appldata_unregister_ops()