Lines Matching refs:head
17 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument
26 sysctl_head_get(head); in proc_sys_make_inode()
28 ei->sysctl = head; in proc_sys_make_inode()
80 struct ctl_table_header *head = grab_header(dir); in proc_sys_lookup() local
88 if (IS_ERR(head)) in proc_sys_lookup()
89 return ERR_CAST(head); in proc_sys_lookup()
96 table = table ? table->child : head->ctl_table; in proc_sys_lookup()
113 inode = proc_sys_make_inode(dir->i_sb, h ? h : head, p); in proc_sys_lookup()
125 sysctl_head_finish(head); in proc_sys_lookup()
133 struct ctl_table_header *head = grab_header(inode); in proc_sys_call_handler() local
138 if (IS_ERR(head)) in proc_sys_call_handler()
139 return PTR_ERR(head); in proc_sys_call_handler()
146 if (sysctl_perm(head->root, table, write ? MAY_WRITE : MAY_READ)) in proc_sys_call_handler()
160 sysctl_head_finish(head); in proc_sys_call_handler()
180 struct ctl_table_header *head, in proc_sys_fill_cache() argument
197 inode = proc_sys_make_inode(dir->d_sb, head, table); in proc_sys_fill_cache()
216 static int scan(struct ctl_table_header *head, ctl_table *table, in scan() argument
231 res = proc_sys_fill_cache(file, dirent, filldir, head, table); in scan()
244 struct ctl_table_header *head = grab_header(inode); in proc_sys_readdir() local
250 if (IS_ERR(head)) in proc_sys_readdir()
251 return PTR_ERR(head); in proc_sys_readdir()
258 table = table ? table->child : head->ctl_table; in proc_sys_readdir()
276 ret = scan(head, table, &pos, filp, dirent, filldir); in proc_sys_readdir()
291 sysctl_head_finish(head); in proc_sys_readdir()
301 struct ctl_table_header *head; in proc_sys_permission() local
309 head = grab_header(inode); in proc_sys_permission()
310 if (IS_ERR(head)) in proc_sys_permission()
311 return PTR_ERR(head); in proc_sys_permission()
317 error = sysctl_perm(head->root, table, mask); in proc_sys_permission()
319 sysctl_head_finish(head); in proc_sys_permission()
341 struct ctl_table_header *head = grab_header(inode); in proc_sys_getattr() local
344 if (IS_ERR(head)) in proc_sys_getattr()
345 return PTR_ERR(head); in proc_sys_getattr()
351 sysctl_head_finish(head); in proc_sys_getattr()