Lines Matching refs:ctl_table_header
49 struct ctl_table_header *register_sysctl_mount_point(const char *path) in register_sysctl_mount_point()
90 static void drop_sysctl_table(struct ctl_table_header *header);
91 static int sysctl_follow_link(struct ctl_table_header **phead,
93 static int insert_links(struct ctl_table_header *head);
94 static void put_links(struct ctl_table_header *header);
113 static const struct ctl_table *find_entry(struct ctl_table_header **phead, in find_entry()
116 struct ctl_table_header *head; in find_entry()
146 static int insert_entry(struct ctl_table_header *head, const struct ctl_table *entry) in insert_entry()
155 struct ctl_table_header *parent_head; in insert_entry()
185 static void erase_entry(struct ctl_table_header *head, const struct ctl_table *entry) in erase_entry()
192 static void init_header(struct ctl_table_header *head, in init_header()
220 static void erase_header(struct ctl_table_header *head) in erase_header()
228 static int insert_header(struct ctl_dir *dir, struct ctl_table_header *header) in insert_header()
231 struct ctl_table_header *dir_h = &dir->header; in insert_header()
268 static int use_table(struct ctl_table_header *p) in use_table()
278 static void unuse_table(struct ctl_table_header *p) in unuse_table()
287 static void proc_sys_invalidate_dcache(struct ctl_table_header *head) in proc_sys_invalidate_dcache()
292 static void start_unregistering(struct ctl_table_header *p) in start_unregistering()
325 static struct ctl_table_header *sysctl_head_grab(struct ctl_table_header *head) in sysctl_head_grab()
335 static void sysctl_head_finish(struct ctl_table_header *head) in sysctl_head_finish()
353 static const struct ctl_table *lookup_entry(struct ctl_table_header **phead, in lookup_entry()
357 struct ctl_table_header *head; in lookup_entry()
383 struct ctl_table_header **phead, const struct ctl_table **pentry) in first_entry()
385 struct ctl_table_header *head = NULL; in first_entry()
400 static void next_entry(struct ctl_table_header **phead, const struct ctl_table **pentry) in next_entry()
402 struct ctl_table_header *head = *phead; in next_entry()
436 static int sysctl_perm(struct ctl_table_header *head, const struct ctl_table *table, int op) in sysctl_perm()
450 struct ctl_table_header *head, const struct ctl_table *table) in proc_sys_make_inode()
498 void proc_sys_evict_inode(struct inode *inode, struct ctl_table_header *head) in proc_sys_evict_inode()
507 static struct ctl_table_header *grab_header(struct inode *inode) in grab_header()
509 struct ctl_table_header *head = PROC_I(inode)->sysctl; in grab_header()
518 struct ctl_table_header *head = grab_header(dir); in proc_sys_lookup()
519 struct ctl_table_header *h = NULL; in proc_sys_lookup()
558 struct ctl_table_header *head = grab_header(inode); in proc_sys_call_handler()
632 struct ctl_table_header *head = grab_header(inode); in proc_sys_open()
650 struct ctl_table_header *head = grab_header(inode); in proc_sys_poll()
681 struct ctl_table_header *head, in proc_sys_fill_cache()
725 struct ctl_table_header *head, in proc_sys_link_fill_cache()
744 static int scan(struct ctl_table_header *head, const struct ctl_table *table, in scan()
766 struct ctl_table_header *head = grab_header(file_inode(file)); in proc_sys_readdir()
767 struct ctl_table_header *h = NULL; in proc_sys_readdir()
800 struct ctl_table_header *head; in proc_sys_permission()
844 struct ctl_table_header *head = grab_header(inode); in proc_sys_getattr()
900 static int sysctl_is_seen(struct ctl_table_header *p) in sysctl_is_seen()
918 struct ctl_table_header *head; in proc_sys_compare()
944 struct ctl_table_header *head; in find_subdir()
1055 static int sysctl_follow_link(struct ctl_table_header **phead, in sysctl_follow_link()
1058 struct ctl_table_header *head; in sysctl_follow_link()
1141 static int sysctl_check_table(const char *path, struct ctl_table_header *header) in sysctl_check_table()
1177 static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_header *head) in new_links()
1180 struct ctl_table_header *links; in new_links()
1191 links = kzalloc(sizeof(struct ctl_table_header) + in new_links()
1222 struct ctl_table_header *header, in get_links()
1225 struct ctl_table_header *tmp_head; in get_links()
1254 static int insert_links(struct ctl_table_header *head) in insert_links()
1258 struct ctl_table_header *links; in insert_links()
1367 struct ctl_table_header *__register_sysctl_table( in __register_sysctl_table()
1372 struct ctl_table_header *header; in __register_sysctl_table()
1376 header = kzalloc(sizeof(struct ctl_table_header) + in __register_sysctl_table()
1430 struct ctl_table_header *register_sysctl_sz(const char *path, const struct ctl_table *table, in register_sysctl_sz()
1462 struct ctl_table_header *hdr = register_sysctl_sz(path, table, table_size); in __register_sysctl_init()
1471 static void put_links(struct ctl_table_header *header) in put_links()
1487 struct ctl_table_header *link_head; in put_links()
1505 static void drop_sysctl_table(struct ctl_table_header *header) in drop_sysctl_table()
1531 void unregister_sysctl_table(struct ctl_table_header * header) in unregister_sysctl_table()