Lines Matching refs:link
29 /* The first and last link in the doubly linked list.
71 register_fd_hook (close_hook_fn close_hook, ioctl_hook_fn ioctl_hook, struct fd_hook *link)
78 if (link->private_next == NULL && link->private_prev == NULL)
80 /* Add the link to the doubly linked list. */
81 link->private_next = anchor.private_next;
82 link->private_prev = &anchor;
83 link->private_close_fn = close_hook;
84 link->private_ioctl_fn = ioctl_hook;
85 anchor.private_next->private_prev = link;
86 anchor.private_next = link;
90 /* The link is already in use. */
91 if (link->private_close_fn != close_hook
92 || link->private_ioctl_fn != ioctl_hook)
98 unregister_fd_hook (struct fd_hook *link)
100 struct fd_hook *next = link->private_next;
101 struct fd_hook *prev = link->private_prev;
105 /* The link is in use. Remove it from the doubly linked list. */
108 /* Clear the link, to mark it unused. */
109 link->private_next = NULL;
110 link->private_prev = NULL;
111 link->private_close_fn = NULL;
112 link->private_ioctl_fn = NULL;