• Home
  • Raw
  • Download

Lines Matching refs:entry

113 	struct ctl_table *entry;  in find_entry()  local
124 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
125 procname = entry->procname; in find_entry()
134 return entry; in find_entry()
140 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry() argument
142 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
145 const char *name = entry->procname; in insert_entry()
169 pr_cont("/%s\n", entry->procname); in insert_entry()
179 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry() argument
181 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
202 struct ctl_table *entry; in init_header() local
203 for (entry = table; entry->procname; entry++, node++) in init_header()
210 struct ctl_table *entry; in erase_header() local
211 for (entry = head->ctl_table; entry->procname; entry++) in erase_header()
212 erase_entry(head, entry); in erase_header()
217 struct ctl_table *entry; in insert_header() local
236 for (entry = header->ctl_table; entry->procname; entry++) { in insert_header()
237 err = insert_entry(header, entry); in insert_header()
372 struct ctl_table *entry; in lookup_entry() local
375 entry = find_entry(&head, dir, name, namelen); in lookup_entry()
376 if (entry && use_table(head)) in lookup_entry()
379 entry = NULL; in lookup_entry()
381 return entry; in lookup_entry()
400 struct ctl_table *entry = NULL; in first_entry() local
408 entry = &head->ctl_table[ctl_node - head->node]; in first_entry()
411 *pentry = entry; in first_entry()
417 struct ctl_table *entry = *pentry; in next_entry() local
418 struct ctl_node *ctl_node = &head->node[entry - head->ctl_table]; in next_entry()
428 entry = &head->ctl_table[ctl_node - head->node]; in next_entry()
431 *pentry = entry; in next_entry()
782 struct ctl_table *entry; in proc_sys_readdir() local
796 for (first_entry(ctl_dir, &h, &entry); h; next_entry(&h, &entry)) { in proc_sys_readdir()
797 if (!scan(h, entry, &pos, file, ctx)) { in proc_sys_readdir()
954 struct ctl_table *entry; in find_subdir() local
956 entry = find_entry(&head, dir, name, namelen); in find_subdir()
957 if (!entry) in find_subdir()
959 if (!S_ISDIR(entry->mode)) in find_subdir()
1071 struct ctl_table *entry; in sysctl_follow_link() local
1085 entry = find_entry(&head, dir, procname, strlen(procname)); in sysctl_follow_link()
1087 if (entry && use_table(head)) { in sysctl_follow_link()
1090 *pentry = entry; in sysctl_follow_link()
1165 struct ctl_table *link_table, *entry, *link; in new_links() local
1173 for (entry = table; entry->procname; entry++) { in new_links()
1175 name_bytes += strlen(entry->procname) + 1; in new_links()
1191 for (link = link_table, entry = table; entry->procname; link++, entry++) { in new_links()
1192 int len = strlen(entry->procname) + 1; in new_links()
1193 memcpy(link_name, entry->procname, len); in new_links()
1209 struct ctl_table *entry, *link; in get_links() local
1212 for (entry = table; entry->procname; entry++) { in get_links()
1213 const char *procname = entry->procname; in get_links()
1217 if (S_ISDIR(link->mode) && S_ISDIR(entry->mode)) in get_links()
1225 for (entry = table; entry->procname; entry++) { in get_links()
1226 const char *procname = entry->procname; in get_links()
1324 struct ctl_table *entry; in __register_sysctl_table() local
1328 for (entry = table; entry->procname; entry++) in __register_sysctl_table()
1417 struct ctl_table *entry; in count_subheaders() local
1423 for (entry = table; entry->procname; entry++) { in count_subheaders()
1424 if (entry->child) in count_subheaders()
1425 nr_subheaders += count_subheaders(entry->child); in count_subheaders()
1437 struct ctl_table *entry, *files; in register_leaf_sysctl_tables() local
1442 for (entry = table; entry->procname; entry++) { in register_leaf_sysctl_tables()
1443 if (entry->child) in register_leaf_sysctl_tables()
1459 for (new = files, entry = table; entry->procname; entry++) { in register_leaf_sysctl_tables()
1460 if (entry->child) in register_leaf_sysctl_tables()
1462 *new = *entry; in register_leaf_sysctl_tables()
1483 for (entry = table; entry->procname; entry++) { in register_leaf_sysctl_tables()
1486 if (!entry->child) in register_leaf_sysctl_tables()
1490 child_pos = append_path(path, pos, entry->procname); in register_leaf_sysctl_tables()
1495 set, entry->child); in register_leaf_sysctl_tables()
1619 struct ctl_table *entry; in put_links() local
1628 for (entry = header->ctl_table; entry->procname; entry++) { in put_links()
1631 const char *name = entry->procname; in put_links()
1635 ((S_ISDIR(link->mode) && S_ISDIR(entry->mode)) || in put_links()