Lines Matching refs:ctl_table_header
30 static bool is_empty_dir(struct ctl_table_header *head) in is_empty_dir()
75 static void drop_sysctl_table(struct ctl_table_header *header);
76 static int sysctl_follow_link(struct ctl_table_header **phead,
78 static int insert_links(struct ctl_table_header *head);
79 static void put_links(struct ctl_table_header *header);
104 static struct ctl_table *find_entry(struct ctl_table_header **phead, in find_entry()
107 struct ctl_table_header *head; in find_entry()
135 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry()
144 struct ctl_table_header *parent_head; in insert_entry()
174 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry()
181 static void init_header(struct ctl_table_header *head, in init_header()
203 static void erase_header(struct ctl_table_header *head) in erase_header()
210 static int insert_header(struct ctl_dir *dir, struct ctl_table_header *header) in insert_header()
249 static int use_table(struct ctl_table_header *p) in use_table()
258 static void unuse_table(struct ctl_table_header *p) in unuse_table()
265 static void proc_sys_prune_dcache(struct ctl_table_header *head) in proc_sys_prune_dcache()
304 static void start_unregistering(struct ctl_table_header *p) in start_unregistering()
334 static struct ctl_table_header *sysctl_head_grab(struct ctl_table_header *head) in sysctl_head_grab()
344 static void sysctl_head_finish(struct ctl_table_header *head) in sysctl_head_finish()
362 static struct ctl_table *lookup_entry(struct ctl_table_header **phead, in lookup_entry()
366 struct ctl_table_header *head; in lookup_entry()
392 struct ctl_table_header **phead, struct ctl_table **pentry) in first_entry()
394 struct ctl_table_header *head = NULL; in first_entry()
409 static void next_entry(struct ctl_table_header **phead, struct ctl_table **pentry) in next_entry()
411 struct ctl_table_header *head = *phead; in next_entry()
445 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm()
459 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode()
507 void proc_sys_evict_inode(struct inode *inode, struct ctl_table_header *head) in proc_sys_evict_inode()
516 static struct ctl_table_header *grab_header(struct inode *inode) in grab_header()
518 struct ctl_table_header *head = PROC_I(inode)->sysctl; in grab_header()
527 struct ctl_table_header *head = grab_header(dir); in proc_sys_lookup()
528 struct ctl_table_header *h = NULL; in proc_sys_lookup()
571 struct ctl_table_header *head = grab_header(inode); in proc_sys_call_handler()
617 struct ctl_table_header *head = grab_header(inode); in proc_sys_open()
635 struct ctl_table_header *head = grab_header(inode); in proc_sys_poll()
666 struct ctl_table_header *head, in proc_sys_fill_cache()
715 struct ctl_table_header *head, in proc_sys_link_fill_cache()
734 static int scan(struct ctl_table_header *head, struct ctl_table *table, in scan()
756 struct ctl_table_header *head = grab_header(file_inode(file)); in proc_sys_readdir()
757 struct ctl_table_header *h = NULL; in proc_sys_readdir()
789 struct ctl_table_header *head; in proc_sys_permission()
832 struct ctl_table_header *head = grab_header(inode); in proc_sys_getattr()
885 static int sysctl_is_seen(struct ctl_table_header *p) in sysctl_is_seen()
903 struct ctl_table_header *head; in proc_sys_compare()
929 struct ctl_table_header *head; in find_subdir()
1041 static int sysctl_follow_link(struct ctl_table_header **phead, in sysctl_follow_link()
1044 struct ctl_table_header *head; in sysctl_follow_link()
1138 static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table *table, in new_links()
1142 struct ctl_table_header *links; in new_links()
1154 links = kzalloc(sizeof(struct ctl_table_header) + in new_links()
1184 struct ctl_table_header *head; in get_links()
1209 static int insert_links(struct ctl_table_header *head) in insert_links()
1213 struct ctl_table_header *links; in insert_links()
1292 struct ctl_table_header *__register_sysctl_table( in __register_sysctl_table()
1297 struct ctl_table_header *header; in __register_sysctl_table()
1307 header = kzalloc(sizeof(struct ctl_table_header) + in __register_sysctl_table()
1369 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table) in register_sysctl()
1409 struct ctl_table_header ***subheader, struct ctl_table_set *set, in register_leaf_sysctl_tables()
1445 struct ctl_table_header *header; in register_leaf_sysctl_tables()
1493 struct ctl_table_header *__register_sysctl_paths( in __register_sysctl_paths()
1499 struct ctl_table_header *header = NULL, **subheaders, **subheader; in __register_sysctl_paths()
1529 subheaders = (struct ctl_table_header **) (header + 1); in __register_sysctl_paths()
1544 struct ctl_table_header *subh = *(--subheader); in __register_sysctl_paths()
1564 struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, in register_sysctl_paths()
1581 struct ctl_table_header *register_sysctl_table(struct ctl_table *table) in register_sysctl_table()
1589 static void put_links(struct ctl_table_header *header) in put_links()
1605 struct ctl_table_header *link_head; in put_links()
1623 static void drop_sysctl_table(struct ctl_table_header *header) in drop_sysctl_table()
1646 void unregister_sysctl_table(struct ctl_table_header * header) in unregister_sysctl_table()
1656 struct ctl_table_header **subheaders; in unregister_sysctl_table()
1659 subheaders = (struct ctl_table_header **)(header + 1); in unregister_sysctl_table()
1661 struct ctl_table_header *subh = subheaders[i]; in unregister_sysctl_table()