Lines Matching refs:ctl_table

30 static struct ctl_table root_table[] = {
41 .ctl_table = root_table }},
52 struct ctl_table **pentry, struct nsproxy *namespaces);
60 printk(KERN_CONT "%s/", dir->header.ctl_table[0].procname); in sysctl_print_dir()
79 static struct ctl_table *find_entry(struct ctl_table_header **phead, in find_entry()
83 struct ctl_table *entry; in find_entry()
94 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
110 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry()
112 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
120 struct ctl_table *parent_entry; in insert_entry()
128 parent_entry = &parent_head->ctl_table[parent_node - parent_head->node]; in insert_entry()
148 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry()
150 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
157 struct ctl_node *node, struct ctl_table *table) in init_header()
159 head->ctl_table = table; in init_header()
170 struct ctl_table *entry; in init_header()
180 struct ctl_table *entry; in erase_header()
181 for (entry = head->ctl_table; entry->procname; entry++) in erase_header()
187 struct ctl_table *entry; in insert_header()
195 for (entry = header->ctl_table; entry->procname; entry++) { in insert_header()
296 static struct ctl_table *lookup_entry(struct ctl_table_header **phead, in lookup_entry()
301 struct ctl_table *entry; in lookup_entry()
326 struct ctl_table_header **phead, struct ctl_table **pentry) in first_entry()
329 struct ctl_table *entry = NULL; in first_entry()
337 entry = &head->ctl_table[ctl_node - head->node]; in first_entry()
343 static void next_entry(struct ctl_table_header **phead, struct ctl_table **pentry) in next_entry()
346 struct ctl_table *entry = *pentry; in next_entry()
347 struct ctl_node *ctl_node = &head->node[entry - head->ctl_table]; in next_entry()
357 entry = &head->ctl_table[ctl_node - head->node]; in next_entry()
383 static int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) in sysctl_perm()
396 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode()
441 struct ctl_table *p; in proc_sys_lookup()
484 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_call_handler()
530 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_open()
548 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_poll()
579 struct ctl_table *table) in proc_sys_fill_cache()
617 struct ctl_table *table) in proc_sys_link_fill_cache()
635 static int scan(struct ctl_table_header *head, ctl_table *table, in scan()
661 struct ctl_table *entry; in proc_sys_readdir()
707 struct ctl_table *table; in proc_sys_permission()
756 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_getattr()
852 struct ctl_table *entry; in find_subdir()
865 struct ctl_table *table; in new_dir()
871 sizeof(struct ctl_table)*2 + namelen + 1, in new_dir()
877 table = (struct ctl_table *)(node + 1); in new_dir()
959 procname = dir->header.ctl_table[0].procname; in xlate_dir()
964 struct ctl_table **pentry, struct nsproxy *namespaces) in sysctl_follow_link()
969 struct ctl_table *entry; in sysctl_follow_link()
997 static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...) in sysctl_err()
1013 static int sysctl_check_table(const char *path, struct ctl_table *table) in sysctl_check_table()
1043 static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table *table, in new_links()
1046 struct ctl_table *link_table, *entry, *link; in new_links()
1061 sizeof(struct ctl_table)*(nr_entries + 1) + in new_links()
1069 link_table = (struct ctl_table *)(node + nr_entries); in new_links()
1087 struct ctl_table *table, struct ctl_table_root *link_root) in get_links()
1090 struct ctl_table *entry, *link; in get_links()
1128 if (get_links(core_parent, head->ctl_table, head->root)) in insert_links()
1134 links = new_links(core_parent, head->ctl_table, head->root); in insert_links()
1142 if (get_links(core_parent, head->ctl_table, head->root)) { in insert_links()
1199 const char *path, struct ctl_table *table) in __register_sysctl_table()
1205 struct ctl_table *entry; in __register_sysctl_table()
1274 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table) in register_sysctl()
1294 static int count_subheaders(struct ctl_table *table) in count_subheaders()
1298 struct ctl_table *entry; in count_subheaders()
1315 struct ctl_table *table) in register_leaf_sysctl_tables()
1317 struct ctl_table *ctl_table_arg = NULL; in register_leaf_sysctl_tables()
1318 struct ctl_table *entry, *files; in register_leaf_sysctl_tables()
1333 struct ctl_table *new; in register_leaf_sysctl_tables()
1334 files = kzalloc(sizeof(struct ctl_table) * (nr_files + 1), in register_leaf_sysctl_tables()
1400 const struct ctl_path *path, struct ctl_table *table) in __register_sysctl_paths()
1402 struct ctl_table *ctl_table_arg = table; in __register_sysctl_paths()
1450 struct ctl_table *table = subh->ctl_table_arg; in __register_sysctl_paths()
1470 struct ctl_table *table) in register_sysctl_paths()
1486 struct ctl_table_header *register_sysctl_table(struct ctl_table *table) in register_sysctl_table()
1500 struct ctl_table *entry; in put_links()
1509 for (entry = header->ctl_table; entry->procname; entry++) { in put_links()
1511 struct ctl_table *link; in put_links()
1567 struct ctl_table *table = subh->ctl_table_arg; in unregister_sysctl_table()