Lines Matching refs:watch
33 watch through that pipe. Only sources that have been connected to a pipe will
65 internally by the watch queue itself. There are two subtypes:
70 The first indicates that an object on which a watch was installed was removed
79 * The watch ID (mask with WATCH_INFO_ID and shift by WATCH_INFO_ID__SHIFT).
80 This indicates that caller's ID of the watch, which may be between 0
97 A "watch list" is a list of watchers that are subscribed to a source of
100 non-global watch list is typically referred to by reference to the object it
102 watch that specific key).
104 To manage a watch list, the following functions are provided:
109 void (*release_watch)(struct watch *wlist));
111 Initialise a watch list. If ``release_watch`` is not NULL, then this
113 destroyed to discard any references the watch list holds on the watched
125 A "watch queue" is the buffer allocated by an application that notification
128 a watch. These can be managed with:
132 Since watch queues are indicated to the kernel by the fd of the pipe that
134 This can be used to look up an opaque pointer to the watch queue from the
145 A "watch" is a subscription on a watch list, indicating the watch queue, and
146 thus the buffer, into which notification records should be written. The watch
148 userspace. Some parts of the watch struct can be set by the driver::
150 struct watch {
163 the associated watch queue buffer.
173 * ``void init_watch(struct watch *watch, struct watch_queue *wqueue);``
175 Initialise a watch object, setting its pointer to the watch queue, using
178 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);``
180 Subscribe a watch to a watch list (notification source). The
181 driver-settable fields in the watch struct must have been set before this
190 Remove a watch from a watch list, where the watch must match the specified
191 watch queue (``wqueue``) and object identifier (``id``). A notification
192 (``WATCH_META_REMOVAL_NOTIFICATION``) is sent to the watch queue to
193 indicate that the watch got removed.
197 Remove all the watches from a watch list. It is expected that this will be
198 called preparatory to destruction and that the watch list will be
200 (``WATCH_META_REMOVAL_NOTIFICATION``) is sent to the watch queue of each
201 subscribed watch to indicate that the watch got removed.
207 To post a notification to watch list so that the subscribed watches can see it,
244 Once a watch queue has been created, a set of filters can be applied to limit
278 (watch.info & info_mask) == info_filter