Lines Matching refs:ctl_table
24 struct ctl_table sysctl_mount_point[] = {
30 return head->ctl_table[0].child == sysctl_mount_point; in is_empty_dir()
35 dir->header.ctl_table[0].child = sysctl_mount_point; in set_empty_dir()
41 dir->header.ctl_table[0].child = NULL; in clear_empty_dir()
53 static struct ctl_table root_table[] = {
64 .ctl_table = root_table }},
75 struct ctl_table **pentry, struct nsproxy *namespaces);
83 pr_cont("%s/", dir->header.ctl_table[0].procname); in sysctl_print_dir()
102 static struct ctl_table *find_entry(struct ctl_table_header **phead, in find_entry()
106 struct ctl_table *entry; in find_entry()
117 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
133 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry()
135 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
143 struct ctl_table *parent_entry; in insert_entry()
151 parent_entry = &parent_head->ctl_table[parent_node - parent_head->node]; in insert_entry()
172 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry()
174 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
181 struct ctl_node *node, struct ctl_table *table) in init_header()
183 head->ctl_table = table; in init_header()
194 struct ctl_table *entry; in init_header()
202 struct ctl_table *entry; in erase_header()
203 for (entry = head->ctl_table; entry->procname; entry++) in erase_header()
209 struct ctl_table *entry; in insert_header()
217 if (header->ctl_table == sysctl_mount_point) { in insert_header()
228 for (entry = header->ctl_table; entry->procname; entry++) { in insert_header()
238 if (header->ctl_table == sysctl_mount_point) in insert_header()
330 static struct ctl_table *lookup_entry(struct ctl_table_header **phead, in lookup_entry()
335 struct ctl_table *entry; in lookup_entry()
360 struct ctl_table_header **phead, struct ctl_table **pentry) in first_entry()
363 struct ctl_table *entry = NULL; in first_entry()
371 entry = &head->ctl_table[ctl_node - head->node]; in first_entry()
377 static void next_entry(struct ctl_table_header **phead, struct ctl_table **pentry) in next_entry()
380 struct ctl_table *entry = *pentry; in next_entry()
381 struct ctl_node *ctl_node = &head->node[entry - head->ctl_table]; in next_entry()
391 entry = &head->ctl_table[ctl_node - head->node]; in next_entry()
417 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm()
431 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode()
478 struct ctl_table *p; in proc_sys_lookup()
521 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_call_handler()
567 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_open()
585 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_poll()
616 struct ctl_table *table) in proc_sys_fill_cache()
654 struct ctl_table *table) in proc_sys_link_fill_cache()
672 static int scan(struct ctl_table_header *head, struct ctl_table *table, in scan()
696 struct ctl_table *entry; in proc_sys_readdir()
727 struct ctl_table *table; in proc_sys_permission()
769 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_getattr()
866 struct ctl_table *entry; in find_subdir()
879 struct ctl_table *table; in new_dir()
885 sizeof(struct ctl_table)*2 + namelen + 1, in new_dir()
891 table = (struct ctl_table *)(node + 1); in new_dir()
973 procname = dir->header.ctl_table[0].procname; in xlate_dir()
978 struct ctl_table **pentry, struct nsproxy *namespaces) in sysctl_follow_link()
983 struct ctl_table *entry; in sysctl_follow_link()
1011 static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...) in sysctl_err()
1027 static int sysctl_check_table(const char *path, struct ctl_table *table) in sysctl_check_table()
1057 static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table *table, in new_links()
1060 struct ctl_table *link_table, *entry, *link; in new_links()
1075 sizeof(struct ctl_table)*(nr_entries + 1) + in new_links()
1083 link_table = (struct ctl_table *)(node + nr_entries); in new_links()
1101 struct ctl_table *table, struct ctl_table_root *link_root) in get_links()
1104 struct ctl_table *entry, *link; in get_links()
1142 if (get_links(core_parent, head->ctl_table, head->root)) in insert_links()
1148 links = new_links(core_parent, head->ctl_table, head->root); in insert_links()
1156 if (get_links(core_parent, head->ctl_table, head->root)) { in insert_links()
1213 const char *path, struct ctl_table *table) in __register_sysctl_table()
1219 struct ctl_table *entry; in __register_sysctl_table()
1288 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table) in register_sysctl()
1308 static int count_subheaders(struct ctl_table *table) in count_subheaders()
1312 struct ctl_table *entry; in count_subheaders()
1329 struct ctl_table *table) in register_leaf_sysctl_tables()
1331 struct ctl_table *ctl_table_arg = NULL; in register_leaf_sysctl_tables()
1332 struct ctl_table *entry, *files; in register_leaf_sysctl_tables()
1347 struct ctl_table *new; in register_leaf_sysctl_tables()
1348 files = kzalloc(sizeof(struct ctl_table) * (nr_files + 1), in register_leaf_sysctl_tables()
1414 const struct ctl_path *path, struct ctl_table *table) in __register_sysctl_paths()
1416 struct ctl_table *ctl_table_arg = table; in __register_sysctl_paths()
1464 struct ctl_table *table = subh->ctl_table_arg; in __register_sysctl_paths()
1484 struct ctl_table *table) in register_sysctl_paths()
1500 struct ctl_table_header *register_sysctl_table(struct ctl_table *table) in register_sysctl_table()
1514 struct ctl_table *entry; in put_links()
1523 for (entry = header->ctl_table; entry->procname; entry++) { in put_links()
1525 struct ctl_table *link; in put_links()
1581 struct ctl_table *table = subh->ctl_table_arg; in unregister_sysctl_table()