• Home
  • Raw
  • Download

Lines Matching refs:entry

106 	struct ctl_table *entry;  in find_entry()  local
117 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
118 procname = entry->procname; in find_entry()
127 return entry; in find_entry()
133 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry() argument
135 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
138 const char *name = entry->procname; in insert_entry()
162 pr_cont("/%s\n", entry->procname); in insert_entry()
172 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry() argument
174 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
194 struct ctl_table *entry; in init_header() local
195 for (entry = table; entry->procname; entry++, node++) in init_header()
202 struct ctl_table *entry; in erase_header() local
203 for (entry = head->ctl_table; entry->procname; entry++) in erase_header()
204 erase_entry(head, entry); in erase_header()
209 struct ctl_table *entry; in insert_header() local
228 for (entry = header->ctl_table; entry->procname; entry++) { in insert_header()
229 err = insert_entry(header, entry); in insert_header()
335 struct ctl_table *entry; in lookup_entry() local
338 entry = find_entry(&head, dir, name, namelen); in lookup_entry()
339 if (entry && use_table(head)) in lookup_entry()
342 entry = NULL; in lookup_entry()
344 return entry; in lookup_entry()
363 struct ctl_table *entry = NULL; in first_entry() local
371 entry = &head->ctl_table[ctl_node - head->node]; in first_entry()
374 *pentry = entry; in first_entry()
380 struct ctl_table *entry = *pentry; in next_entry() local
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()
394 *pentry = entry; in next_entry()
699 struct ctl_table *entry; in proc_sys_readdir() local
713 for (first_entry(ctl_dir, &h, &entry); h; next_entry(&h, &entry)) { in proc_sys_readdir()
714 if (!scan(h, entry, &pos, file, ctx)) { in proc_sys_readdir()
870 struct ctl_table *entry; in find_subdir() local
872 entry = find_entry(&head, dir, name, namelen); in find_subdir()
873 if (!entry) in find_subdir()
875 if (!S_ISDIR(entry->mode)) in find_subdir()
987 struct ctl_table *entry; in sysctl_follow_link() local
1001 entry = find_entry(&head, dir, procname, strlen(procname)); in sysctl_follow_link()
1003 if (entry && use_table(head)) { in sysctl_follow_link()
1006 *pentry = entry; in sysctl_follow_link()
1064 struct ctl_table *link_table, *entry, *link; in new_links() local
1072 for (entry = table; entry->procname; entry++) { in new_links()
1074 name_bytes += strlen(entry->procname) + 1; in new_links()
1090 for (link = link_table, entry = table; entry->procname; link++, entry++) { in new_links()
1091 int len = strlen(entry->procname) + 1; in new_links()
1092 memcpy(link_name, entry->procname, len); in new_links()
1108 struct ctl_table *entry, *link; in get_links() local
1111 for (entry = table; entry->procname; entry++) { in get_links()
1112 const char *procname = entry->procname; in get_links()
1116 if (S_ISDIR(link->mode) && S_ISDIR(entry->mode)) in get_links()
1124 for (entry = table; entry->procname; entry++) { in get_links()
1125 const char *procname = entry->procname; in get_links()
1223 struct ctl_table *entry; in __register_sysctl_table() local
1227 for (entry = table; entry->procname; entry++) in __register_sysctl_table()
1316 struct ctl_table *entry; in count_subheaders() local
1322 for (entry = table; entry->procname; entry++) { in count_subheaders()
1323 if (entry->child) in count_subheaders()
1324 nr_subheaders += count_subheaders(entry->child); in count_subheaders()
1336 struct ctl_table *entry, *files; in register_leaf_sysctl_tables() local
1341 for (entry = table; entry->procname; entry++) { in register_leaf_sysctl_tables()
1342 if (entry->child) in register_leaf_sysctl_tables()
1358 for (new = files, entry = table; entry->procname; entry++) { in register_leaf_sysctl_tables()
1359 if (entry->child) in register_leaf_sysctl_tables()
1361 *new = *entry; in register_leaf_sysctl_tables()
1382 for (entry = table; entry->procname; entry++) { in register_leaf_sysctl_tables()
1385 if (!entry->child) in register_leaf_sysctl_tables()
1389 child_pos = append_path(path, pos, entry->procname); in register_leaf_sysctl_tables()
1394 set, entry->child); in register_leaf_sysctl_tables()
1518 struct ctl_table *entry; in put_links() local
1527 for (entry = header->ctl_table; entry->procname; entry++) { in put_links()
1530 const char *name = entry->procname; in put_links()
1534 ((S_ISDIR(link->mode) && S_ISDIR(entry->mode)) || in put_links()