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,
59 static struct ctl_table appldata_table[] = {
73 static struct ctl_table appldata_dir_table[] = {
218 appldata_timer_handler(struct ctl_table *ctl, int write, in appldata_timer_handler()
223 struct ctl_table ctl_entry = { in appldata_timer_handler()
251 appldata_interval_handler(struct ctl_table *ctl, int write, in appldata_interval_handler()
256 struct ctl_table ctl_entry = { in appldata_interval_handler()
281 appldata_generic_handler(struct ctl_table *ctl, int write, in appldata_generic_handler()
288 struct ctl_table ctl_entry = { in appldata_generic_handler()
299 if (&tmp_ops->ctl_table[2] == ctl) { in appldata_generic_handler()
369 ops->ctl_table = kcalloc(4, sizeof(struct ctl_table), GFP_KERNEL); in appldata_register_ops()
370 if (!ops->ctl_table) in appldata_register_ops()
377 ops->ctl_table[0].procname = appldata_proc_name; in appldata_register_ops()
378 ops->ctl_table[0].maxlen = 0; in appldata_register_ops()
379 ops->ctl_table[0].mode = S_IRUGO | S_IXUGO; in appldata_register_ops()
380 ops->ctl_table[0].child = &ops->ctl_table[2]; in appldata_register_ops()
382 ops->ctl_table[2].procname = ops->name; in appldata_register_ops()
383 ops->ctl_table[2].mode = S_IRUGO | S_IWUSR; in appldata_register_ops()
384 ops->ctl_table[2].proc_handler = appldata_generic_handler; in appldata_register_ops()
385 ops->ctl_table[2].data = ops; in appldata_register_ops()
387 ops->sysctl_header = register_sysctl_table(ops->ctl_table); in appldata_register_ops()
395 kfree(ops->ctl_table); in appldata_register_ops()
410 kfree(ops->ctl_table); in appldata_unregister_ops()