Lines Matching refs:link
36 /* The first and last link in the doubly linked list.
57 register_close_hook (close_hook_fn hook, struct close_hook *link)
59 if (link->private_next == NULL && link->private_prev == NULL)
61 /* Add the link to the doubly linked list. */
62 link->private_next = anchor.private_next;
63 link->private_prev = &anchor;
64 link->private_fn = hook;
65 anchor.private_next->private_prev = link;
66 anchor.private_next = link;
70 /* The link is already in use. */
71 if (link->private_fn != hook)
77 unregister_close_hook (struct close_hook *link)
79 struct close_hook *next = link->private_next;
80 struct close_hook *prev = link->private_prev;
84 /* The link is in use. Remove it from the doubly linked list. */
87 /* Clear the link, to mark it unused. */
88 link->private_next = NULL;
89 link->private_prev = NULL;
90 link->private_fn = NULL;