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);
113 static struct ctl_table *find_entry(struct ctl_table_header **phead,
117 struct ctl_table *entry;
128 entry = &head->ctl_table[ctl_node - head->node];
144 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry)
146 struct rb_node *node = &head->node[entry - head->ctl_table].node;
154 struct ctl_table *parent_entry;
162 parent_entry = &parent_head->ctl_table[parent_node - parent_head->node];
183 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry)
185 struct rb_node *node = &head->node[entry - head->ctl_table].node;
192 struct ctl_node *node, struct ctl_table *table, size_t table_size)
194 head->ctl_table = table;
207 struct ctl_table *entry;
218 struct ctl_table *entry;
226 struct ctl_table *entry;
237 sysctl_is_perm_empty_ctl_table(header->ctl_table)) {
258 if (header->ctl_table == sysctl_mount_point)
346 static struct ctl_table *lookup_entry(struct ctl_table_header **phead,
351 struct ctl_table *entry;
376 struct ctl_table_header **phead, struct ctl_table **pentry)
379 struct ctl_table *entry = NULL;
387 entry = &head->ctl_table[ctl_node - head->node];
393 static void next_entry(struct ctl_table_header **phead, struct ctl_table **pentry)
396 struct ctl_table *entry = *pentry;
397 struct ctl_node *ctl_node = &head->node[entry - head->ctl_table];
407 entry = &head->ctl_table[ctl_node - head->node];
429 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op)
443 struct ctl_table_header *head, struct ctl_table *table)
516 struct ctl_table *p;
559 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
633 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
651 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
682 struct ctl_table *table)
731 struct ctl_table *table)
749 static int scan(struct ctl_table_header *head, struct ctl_table *table,
773 struct ctl_table *entry;
806 struct ctl_table *table;
850 struct ctl_table *table = PROC_I(inode)->sysctl_entry;
949 struct ctl_table *entry;
962 struct ctl_table *table;
968 sizeof(struct ctl_table)*2 + namelen + 1,
974 table = (struct ctl_table *)(node + 1);
1055 procname = dir->header.ctl_table[0].procname;
1060 struct ctl_table **pentry)
1065 struct ctl_table *entry;
1092 static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...)
1108 static int sysctl_check_table_array(const char *path, struct ctl_table *table)
1133 struct ctl_table *entry;
1167 struct ctl_table *link_table, *entry, *link;
1182 sizeof(struct ctl_table)*(nr_entries + 1) +
1190 link_table = (struct ctl_table *)(node + nr_entries);
1215 struct ctl_table *entry, *link;
1218 sysctl_is_perm_empty_ctl_table(header->ctl_table))
1284 /* Find the directory for the ctl_table. If one is not found create it. */
1323 * Register a sysctl table hierarchy. @table should be a filled in ctl_table
1326 * The members of the &struct ctl_table structure are used as follows:
1364 const char *path, struct ctl_table *table, size_t table_size)
1420 * Register a sysctl table. @table should be a filled in ctl_table
1425 struct ctl_table_header *register_sysctl_sz(const char *path, struct ctl_table *table,
1454 void __init __register_sysctl_init(const char *path, struct ctl_table *table,
1472 struct ctl_table *entry;
1483 struct ctl_table *link;