Lines Matching refs:link
71 register_fd_hook (close_hook_fn close_hook, ioctl_hook_fn ioctl_hook, struct fd_hook *link) in register_fd_hook() argument
78 if (link->private_next == NULL && link->private_prev == NULL) in register_fd_hook()
81 link->private_next = anchor.private_next; in register_fd_hook()
82 link->private_prev = &anchor; in register_fd_hook()
83 link->private_close_fn = close_hook; in register_fd_hook()
84 link->private_ioctl_fn = ioctl_hook; in register_fd_hook()
85 anchor.private_next->private_prev = link; in register_fd_hook()
86 anchor.private_next = link; in register_fd_hook()
91 if (link->private_close_fn != close_hook in register_fd_hook()
92 || link->private_ioctl_fn != ioctl_hook) in register_fd_hook()
98 unregister_fd_hook (struct fd_hook *link) in unregister_fd_hook() argument
100 struct fd_hook *next = link->private_next; in unregister_fd_hook()
101 struct fd_hook *prev = link->private_prev; in unregister_fd_hook()
109 link->private_next = NULL; in unregister_fd_hook()
110 link->private_prev = NULL; in unregister_fd_hook()
111 link->private_close_fn = NULL; in unregister_fd_hook()
112 link->private_ioctl_fn = NULL; in unregister_fd_hook()