Lines Matching refs:ctl_table
24 entry = header->ctl_table; \
37 static const struct ctl_table sysctl_mount_point[] = {
71 static const struct ctl_table root_table[] = {
81 .ctl_table = root_table }},
92 const struct ctl_table **pentry);
100 pr_cont("%s/", dir->header.ctl_table[0].procname); in sysctl_print_dir()
113 static const struct ctl_table *find_entry(struct ctl_table_header **phead, in find_entry()
117 const struct ctl_table *entry; in find_entry()
130 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
146 static int insert_entry(struct ctl_table_header *head, const struct ctl_table *entry) in insert_entry()
148 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
156 const struct ctl_table *parent_entry; in insert_entry()
164 parent_entry = &parent_head->ctl_table[parent_node - parent_head->node]; in insert_entry()
185 static void erase_entry(struct ctl_table_header *head, const struct ctl_table *entry) in erase_entry()
187 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
194 struct ctl_node *node, const struct ctl_table *table, size_t table_size) in init_header()
196 head->ctl_table = table; in init_header()
209 const struct ctl_table *entry; in init_header()
222 const struct ctl_table *entry; in erase_header()
230 const struct ctl_table *entry; in insert_header()
261 if (header->ctl_table == sysctl_mount_point) in insert_header()
353 static const struct ctl_table *lookup_entry(struct ctl_table_header **phead, in lookup_entry()
358 const struct ctl_table *entry; in lookup_entry()
383 struct ctl_table_header **phead, const struct ctl_table **pentry) in first_entry()
386 const struct ctl_table *entry = NULL; in first_entry()
394 entry = &head->ctl_table[ctl_node - head->node]; in first_entry()
400 static void next_entry(struct ctl_table_header **phead, const struct ctl_table **pentry) in next_entry()
403 const struct ctl_table *entry = *pentry; in next_entry()
404 struct ctl_node *ctl_node = &head->node[entry - head->ctl_table]; in next_entry()
414 entry = &head->ctl_table[ctl_node - head->node]; in next_entry()
436 static int sysctl_perm(struct ctl_table_header *head, const struct ctl_table *table, int op) in sysctl_perm()
450 struct ctl_table_header *head, const struct ctl_table *table) in proc_sys_make_inode()
521 const struct ctl_table *p; in proc_sys_lookup()
559 const struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_call_handler()
633 const struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_open()
651 const struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_poll()
682 const struct ctl_table *table) in proc_sys_fill_cache()
726 const struct ctl_table *table) in proc_sys_link_fill_cache()
744 static int scan(struct ctl_table_header *head, const struct ctl_table *table, in scan()
768 const struct ctl_table *entry; in proc_sys_readdir()
801 const struct ctl_table *table; in proc_sys_permission()
845 const struct ctl_table *table = PROC_I(inode)->sysctl_entry; in proc_sys_getattr()
945 const struct ctl_table *entry; in find_subdir()
958 struct ctl_table *table; in new_dir()
964 sizeof(struct ctl_table) + namelen + 1, in new_dir()
970 table = (struct ctl_table *)(node + 1); in new_dir()
1051 procname = dir->header.ctl_table[0].procname; in xlate_dir()
1056 const struct ctl_table **pentry) in sysctl_follow_link()
1059 const struct ctl_table *entry; in sysctl_follow_link()
1088 static int sysctl_err(const char *path, const struct ctl_table *table, char *fmt, ...) in sysctl_err()
1104 static int sysctl_check_table_array(const char *path, const struct ctl_table *table) in sysctl_check_table_array()
1143 const struct ctl_table *entry; in sysctl_check_table()
1179 struct ctl_table *link_table, *link; in new_links()
1181 const struct ctl_table *entry; in new_links()
1193 sizeof(struct ctl_table)*head->ctl_table_size + in new_links()
1201 link_table = (struct ctl_table *)(node + head->ctl_table_size); in new_links()
1226 const struct ctl_table *entry, *link; in get_links()
1369 const char *path, const struct ctl_table *table, size_t table_size) in __register_sysctl_table()
1430 struct ctl_table_header *register_sysctl_sz(const char *path, const struct ctl_table *table, in register_sysctl_sz()
1459 void __init __register_sysctl_init(const char *path, const struct ctl_table *table, in __register_sysctl_init()
1477 const struct ctl_table *entry; in put_links()
1488 const struct ctl_table *link; in put_links()