Lines Matching refs:ctl_table
23 entry = header->ctl_table; \
33 static struct ctl_table sysctl_mount_point[] = {
54 (sysctl_is_perm_empty_ctl_table(hptr->ctl_table))
56 (hptr->ctl_table[0].type = SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY)
58 (hptr->ctl_table[0].type = SYSCTL_TABLE_TYPE_DEFAULT)
69 static struct ctl_table root_table[] = {
80 .ctl_table = root_table }},
91 struct ctl_table **pentry);
99 pr_cont("%s/", dir->header.ctl_table[0].procname); in sysctl_print_dir()
113 static struct ctl_table *find_entry(struct ctl_table_header **phead, in find_entry()
117 struct ctl_table *entry; in find_entry()
128 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
144 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry()
146 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
154 struct ctl_table *parent_entry; in insert_entry()
162 parent_entry = &parent_head->ctl_table[parent_node - parent_head->node]; in insert_entry()
183 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry()
185 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
192 struct ctl_node *node, struct ctl_table *table, size_t table_size) in init_header()
194 head->ctl_table = table; in init_header()
207 struct ctl_table *entry; in init_header()
218 struct ctl_table *entry; in erase_header()
226 struct ctl_table *entry; in insert_header()
236 if (sysctl_is_perm_empty_ctl_table(header->ctl_table)) { in insert_header()
257 if (header->ctl_table == sysctl_mount_point) in insert_header()
345 static struct ctl_table *lookup_entry(struct ctl_table_header **phead, in lookup_entry()
350 struct ctl_table *entry; in lookup_entry()
375 struct ctl_table_header **phead, struct ctl_table **pentry) in first_entry()
378 struct ctl_table *entry = NULL; in first_entry()
386 entry = &head->ctl_table[ctl_node - head->node]; in first_entry()
392 static void next_entry(struct ctl_table_header **phead, struct ctl_table **pentry) in next_entry()
395 struct ctl_table *entry = *pentry; in next_entry()
396 struct ctl_node *ctl_node = &head->node[entry - head->ctl_table]; in next_entry()
406 entry = &head->ctl_table[ctl_node - head->node]; in next_entry()
428 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm()
442 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode()
515 struct ctl_table *p; in proc_sys_lookup()
558 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_call_handler()
632 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_open()
650 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_poll()
681 struct ctl_table *table) in proc_sys_fill_cache()
730 struct ctl_table *table) in proc_sys_link_fill_cache()
748 static int scan(struct ctl_table_header *head, struct ctl_table *table, in scan()
772 struct ctl_table *entry; in proc_sys_readdir()
805 struct ctl_table *table; in proc_sys_permission()
849 struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_getattr()
948 struct ctl_table *entry; in find_subdir()
961 struct ctl_table *table; in new_dir()
967 sizeof(struct ctl_table)*2 + namelen + 1, in new_dir()
973 table = (struct ctl_table *)(node + 1); in new_dir()
1054 procname = dir->header.ctl_table[0].procname; in xlate_dir()
1059 struct ctl_table **pentry) in sysctl_follow_link()
1064 struct ctl_table *entry; in sysctl_follow_link()
1091 static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...) in sysctl_err()
1107 static int sysctl_check_table_array(const char *path, struct ctl_table *table) in sysctl_check_table_array()
1132 struct ctl_table *entry; in sysctl_check_table()
1166 struct ctl_table *link_table, *entry, *link; in new_links()
1181 sizeof(struct ctl_table)*(nr_entries + 1) + in new_links()
1189 link_table = (struct ctl_table *)(node + nr_entries); in new_links()
1214 struct ctl_table *entry, *link; in get_links()
1359 const char *path, struct ctl_table *table, size_t table_size) in __register_sysctl_table()
1420 struct ctl_table_header *register_sysctl_sz(const char *path, struct ctl_table *table, in register_sysctl_sz()
1449 void __init __register_sysctl_init(const char *path, struct ctl_table *table, in __register_sysctl_init()
1467 struct ctl_table *entry; in put_links()
1478 struct ctl_table *link; in put_links()