Lines Matching refs:ctl_table
34 struct ctl_table sysctl_mount_point[] = {
40 return head->ctl_table[0].child == sysctl_mount_point;
45 dir->header.ctl_table[0].child = sysctl_mount_point;
51 dir->header.ctl_table[0].child = NULL;
63 static struct ctl_table root_table[] = {
74 .ctl_table = root_table }},
85 struct ctl_table **pentry);
93 pr_cont("%s/", dir->header.ctl_table[0].procname);
112 static struct ctl_table *find_entry(struct ctl_table_header **phead,
116 struct ctl_table *entry;
127 entry = &head->ctl_table[ctl_node - head->node];
143 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry)
145 struct rb_node *node = &head->node[entry - head->ctl_table].node;
153 struct ctl_table *parent_entry;
161 parent_entry = &parent_head->ctl_table[parent_node - parent_head->node];
182 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry)
184 struct rb_node *node = &head->node[entry - head->ctl_table].node;
191 struct ctl_node *node, struct ctl_table *table)
193 head->ctl_table = table;
205 struct ctl_table *entry;
213 struct ctl_table *entry;
214 for (entry = head->ctl_table; entry->procname; entry++)
220 struct ctl_table *entry;
228 if (header->ctl_table == sysctl_mount_point) {
239 for (entry = header->ctl_table; entry->procname; entry++) {
249 if (header->ctl_table == sysctl_mount_point)
337 static struct ctl_table *lookup_entry(struct ctl_table_header **phead,
342 struct ctl_table *entry;
367 struct ctl_table_header **phead, struct ctl_table **pentry)
370 struct ctl_table *entry = NULL;
378 entry = &head->ctl_table[ctl_node - head->node];
384 static void next_entry(struct ctl_table_header **phead, struct ctl_table **pentry)
387 struct ctl_table *entry = *pentry;
388 struct ctl_node *ctl_node = &head->node[entry - head->ctl_table];
398 entry = &head->ctl_table[ctl_node - head->node];
420 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op)
434 struct ctl_table_header *head, struct ctl_table *table)
505 struct ctl_table *p;
548 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
622 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
640 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
671 struct ctl_table *table)
720 struct ctl_table *table)
738 static int scan(struct ctl_table_header *head, struct ctl_table *table,
762 struct ctl_table *entry;
794 struct ctl_table *table;
837 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
936 struct ctl_table *entry;
949 struct ctl_table *table;
955 sizeof(struct ctl_table)*2 + namelen + 1,
961 table = (struct ctl_table *)(node + 1);
1043 procname = dir->header.ctl_table[0].procname;
1048 struct ctl_table **pentry)
1053 struct ctl_table *entry;
1081 static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...)
1097 static int sysctl_check_table_array(const char *path, struct ctl_table *table)
1115 static int sysctl_check_table(const char *path, struct ctl_table *table)
1150 static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table *table,
1153 struct ctl_table *link_table, *entry, *link;
1168 sizeof(struct ctl_table)*(nr_entries + 1) +
1176 link_table = (struct ctl_table *)(node + nr_entries);
1194 struct ctl_table *table, struct ctl_table_root *link_root)
1197 struct ctl_table *entry, *link;
1235 if (get_links(core_parent, head->ctl_table, head->root))
1241 links = new_links(core_parent, head->ctl_table, head->root);
1249 if (get_links(core_parent, head->ctl_table, head->root)) {
1268 * Register a sysctl table hierarchy. @table should be a filled in ctl_table
1271 * The members of the &struct ctl_table structure are used as follows:
1306 const char *path, struct ctl_table *table)
1312 struct ctl_table *entry;
1335 /* Find the directory for the ctl_table */
1376 * Register a sysctl table. @table should be a filled in ctl_table
1381 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table)
1408 void __init __register_sysctl_init(const char *path, struct ctl_table *table,
1433 static int count_subheaders(struct ctl_table *table)
1437 struct ctl_table *entry;
1454 struct ctl_table *table)
1456 struct ctl_table *ctl_table_arg = NULL;
1457 struct ctl_table *entry, *files;
1472 struct ctl_table *new;
1473 files = kcalloc(nr_files + 1, sizeof(struct ctl_table),
1532 * Register a sysctl table hierarchy. @table should be a filled in ctl_table
1539 const struct ctl_path *path, struct ctl_table *table)
1541 struct ctl_table *ctl_table_arg = table;
1589 struct ctl_table *table = subh->ctl_table_arg;
1603 * Register a sysctl table hierarchy. @table should be a filled in ctl_table
1609 struct ctl_table *table)
1620 * Register a sysctl table hierarchy. @table should be a filled in ctl_table
1625 struct ctl_table_header *register_sysctl_table(struct ctl_table *table)
1639 struct ctl_table *entry;
1648 for (entry = header->ctl_table; entry->procname; entry++) {
1650 struct ctl_table *link;
1709 struct ctl_table *table = subh->ctl_table_arg;