Lines Matching refs:ctl_table
49 static int appldata_timer_handler(struct ctl_table *ctl, int write,
51 static int appldata_interval_handler(struct ctl_table *ctl, int write,
55 static struct ctl_table appldata_table[] = {
69 static struct ctl_table appldata_dir_table[] = {
213 appldata_timer_handler(struct ctl_table *ctl, int write, in appldata_timer_handler()
218 struct ctl_table ctl_entry = { in appldata_timer_handler()
246 appldata_interval_handler(struct ctl_table *ctl, int write, in appldata_interval_handler()
251 struct ctl_table ctl_entry = { in appldata_interval_handler()
276 appldata_generic_handler(struct ctl_table *ctl, int write, in appldata_generic_handler()
283 struct ctl_table ctl_entry = { in appldata_generic_handler()
294 if (&tmp_ops->ctl_table[2] == ctl) { in appldata_generic_handler()
364 ops->ctl_table = kcalloc(4, sizeof(struct ctl_table), GFP_KERNEL); in appldata_register_ops()
365 if (!ops->ctl_table) in appldata_register_ops()
372 ops->ctl_table[0].procname = appldata_proc_name; in appldata_register_ops()
373 ops->ctl_table[0].maxlen = 0; in appldata_register_ops()
374 ops->ctl_table[0].mode = S_IRUGO | S_IXUGO; in appldata_register_ops()
375 ops->ctl_table[0].child = &ops->ctl_table[2]; in appldata_register_ops()
377 ops->ctl_table[2].procname = ops->name; in appldata_register_ops()
378 ops->ctl_table[2].mode = S_IRUGO | S_IWUSR; in appldata_register_ops()
379 ops->ctl_table[2].proc_handler = appldata_generic_handler; in appldata_register_ops()
380 ops->ctl_table[2].data = ops; in appldata_register_ops()
382 ops->sysctl_header = register_sysctl_table(ops->ctl_table); in appldata_register_ops()
390 kfree(ops->ctl_table); in appldata_register_ops()
405 kfree(ops->ctl_table); in appldata_unregister_ops()