Home
last modified time | relevance | path

Searched refs:watch (Results 1 – 25 of 129) sorted by relevance

123456

/OK3568_Linux_fs/kernel/kernel/
H A Daudit_watch.c100 void audit_get_watch(struct audit_watch *watch) in audit_get_watch() argument
102 refcount_inc(&watch->count); in audit_get_watch()
105 void audit_put_watch(struct audit_watch *watch) in audit_put_watch() argument
107 if (refcount_dec_and_test(&watch->count)) { in audit_put_watch()
108 WARN_ON(watch->parent); in audit_put_watch()
109 WARN_ON(!list_empty(&watch->rules)); in audit_put_watch()
110 kfree(watch->path); in audit_put_watch()
111 kfree(watch); in audit_put_watch()
115 static void audit_remove_watch(struct audit_watch *watch) in audit_remove_watch() argument
117 list_del(&watch->wlist); in audit_remove_watch()
[all …]
H A Dwatch_queue.c205 struct watch *watch; in __post_watch_notification() local
214 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification()
215 if (watch->id != id) in __post_watch_notification()
218 n->info |= watch->info_id; in __post_watch_notification()
220 wqueue = rcu_dereference(watch->queue); in __post_watch_notification()
225 if (security_post_notification(watch->cred, cred, n) < 0) in __post_watch_notification()
422 struct watch *watch = container_of(rcu, struct watch, rcu); in free_watch() local
424 put_watch_queue(rcu_access_pointer(watch->queue)); in free_watch()
425 atomic_dec(&watch->cred->user->nr_watches); in free_watch()
426 put_cred(watch->cred); in free_watch()
[all …]
H A Dauditfilter.c87 if (erule->watch) in audit_free_rule()
88 audit_put_watch(erule->watch); in audit_free_rule()
155 krule->inode_f || krule->watch || krule->tree || in audit_to_inode()
663 audit_watch_path(krule->watch)); in audit_krule_to_data()
727 if (strcmp(audit_watch_path(a->watch), in audit_compare_rule()
728 audit_watch_path(b->watch))) in audit_compare_rule()
881 if (old->watch) { in audit_dupe_rule()
882 audit_get_watch(old->watch); in audit_dupe_rule()
883 new->watch = old->watch; in audit_dupe_rule()
901 } else if (entry->rule.watch) { in audit_find_rule()
[all …]
H A Daudit.h259 extern void audit_put_watch(struct audit_watch *watch);
260 extern void audit_get_watch(struct audit_watch *watch);
265 extern char *audit_watch_path(struct audit_watch *watch);
266 extern int audit_watch_compare(struct audit_watch *watch, unsigned long ino,
/OK3568_Linux_fs/kernel/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c228 struct xenbus_watch watch; member
233 static void free_watch_adapter(struct watch_adapter *watch) in free_watch_adapter() argument
235 kfree(watch->watch.node); in free_watch_adapter()
236 kfree(watch->token); in free_watch_adapter()
237 kfree(watch); in free_watch_adapter()
243 struct watch_adapter *watch; in alloc_watch_adapter() local
245 watch = kzalloc(sizeof(*watch), GFP_KERNEL); in alloc_watch_adapter()
246 if (watch == NULL) in alloc_watch_adapter()
249 watch->watch.node = kstrdup(path, GFP_KERNEL); in alloc_watch_adapter()
250 if (watch->watch.node == NULL) in alloc_watch_adapter()
[all …]
H A Dxenbus_xs.c764 int register_xenbus_watch(struct xenbus_watch *watch) in register_xenbus_watch() argument
767 char token[sizeof(watch) * 2 + 1]; in register_xenbus_watch()
770 sprintf(token, "%lX", (long)watch); in register_xenbus_watch()
772 watch->nr_pending = 0; in register_xenbus_watch()
778 list_add(&watch->list, &watches); in register_xenbus_watch()
781 err = xs_watch(watch->node, token); in register_xenbus_watch()
785 list_del(&watch->list); in register_xenbus_watch()
795 void unregister_xenbus_watch(struct xenbus_watch *watch) in unregister_xenbus_watch() argument
798 char token[sizeof(watch) * 2 + 1]; in unregister_xenbus_watch()
801 sprintf(token, "%lX", (long)watch); in unregister_xenbus_watch()
[all …]
H A Dxenbus_probe_backend.c183 static bool frontend_will_handle(struct xenbus_watch *watch, in frontend_will_handle() argument
186 return watch->nr_pending == 0; in frontend_will_handle()
189 static void frontend_changed(struct xenbus_watch *watch, in frontend_changed() argument
192 xenbus_otherend_changed(watch, path, token, 0); in frontend_changed()
212 static void backend_changed(struct xenbus_watch *watch, in backend_changed() argument
H A Dxenbus_client.c129 struct xenbus_watch *watch, in xenbus_watch_path() argument
137 watch->node = path; in xenbus_watch_path()
138 watch->will_handle = will_handle; in xenbus_watch_path()
139 watch->callback = callback; in xenbus_watch_path()
141 err = register_xenbus_watch(watch); in xenbus_watch_path()
144 watch->node = NULL; in xenbus_watch_path()
145 watch->will_handle = NULL; in xenbus_watch_path()
146 watch->callback = NULL; in xenbus_watch_path()
171 struct xenbus_watch *watch, in xenbus_watch_pathfmt() argument
190 err = xenbus_watch_path(dev, path, watch, will_handle, callback); in xenbus_watch_pathfmt()
H A Dxenbus.h47 bool (*otherend_will_handle)(struct xenbus_watch *watch,
49 void (*otherend_changed)(struct xenbus_watch *watch, const char *path,
125 void xenbus_otherend_changed(struct xenbus_watch *watch,
H A Dxenbus_comms.c212 struct xs_watch_event *watch; in process_msg() member
262 len += sizeof(*state.watch); in process_msg()
269 state.body = state.watch->body; in process_msg()
287 state.watch->len = state.msg.len; in process_msg()
288 err = xs_watch_msg(state.watch); in process_msg()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/
H A Drun_loop.cpp23 auto watch = reinterpret_cast<Watch*>(poll->data); in onEvent() local
38 watch->eventCallback(watch->fd, watchEvent); in onEvent()
42 auto watch = reinterpret_cast<Watch*>(poll->data); in onClose() local
43 watch->closeCallback(); in onClose()
156 Watch *watch = nullptr; in addWatch() local
162 watch = watchPtr.get(); in addWatch()
165 if (uv_poll_init(impl->loop, &watch->poll, fd)) { in addWatch()
169 watch = watchPollIter->second.get(); in addWatch()
172 watch->poll.data = watch; in addWatch()
173 watch->fd = fd; in addWatch()
[all …]
/OK3568_Linux_fs/kernel/Documentation/
H A Dwatch_queue.rst33 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));
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/util/
H A Dstopwatch.hpp14 #define MBGL_TIMING_START(watch) std::shared_ptr<util::stopwatch> watch = std::make_unique<util::s… argument
15 #define MBGL_TIMING_FINISH(watch, message) \ argument
19 watch->report(messageStream.str()); \
22 #define MBGL_TIMING_START(watch)
23 #define MBGL_TIMING_FINISH(watch, message)
/OK3568_Linux_fs/kernel/include/linux/
H A Dwatch_queue.h55 struct watch { struct
76 void (*release_watch)(struct watch *); argument
86 extern void init_watch(struct watch *, struct watch_queue *);
87 extern int add_watch_to_object(struct watch *, struct watch_list *);
96 void (*release_watch)(struct watch *)) in init_watch_list() argument
/OK3568_Linux_fs/u-boot/board/freescale/common/
H A Dpixis.h22 u8 watch; member
70 u8 watch; member
100 u8 watch; member
131 u8 watch; member
156 u8 watch; member
/OK3568_Linux_fs/kernel/tools/gpio/
H A DMakefile21 ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon gpio-watch
72 GPIO_WATCH_IN := $(OUTPUT)gpio-watch-in.o
74 $(Q)$(MAKE) $(build)=gpio-watch
75 $(OUTPUT)gpio-watch: $(GPIO_WATCH_IN)
H A DBuild5 gpio-watch-y += gpio-watch.o
/OK3568_Linux_fs/kernel/include/xen/
H A Dxenbus.h187 int register_xenbus_watch(struct xenbus_watch *watch);
188 void unregister_xenbus_watch(struct xenbus_watch *watch);
206 struct xenbus_watch *watch,
212 int xenbus_watch_pathfmt(struct xenbus_device *dev, struct xenbus_watch *watch,
/OK3568_Linux_fs/kernel/Documentation/filesystems/
H A Dinotify.rst18 What is the design decision behind not tying the watch to the open fd of
30 an fd-per-watch?
33 An fd-per-watch quickly consumes more file descriptors than are allowed,
37 A watch consumes less memory than an open file, separating the number
47 fd returns all watch events and also any potential out-of-band data. If
48 every fd was a separate watch,
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dwatch_queue.h75 struct watch_notification watch; member
99 struct watch_notification watch; member
/OK3568_Linux_fs/kernel/security/keys/
H A Dinternal.h192 .watch.type = WATCH_TYPE_KEY_NOTIFY, in notify_key()
193 .watch.subtype = subtype, in notify_key()
194 .watch.info = watch_sizeof(n), in notify_key()
199 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
H A Dkeyctl.c1772 struct watch *watch = NULL; in keyctl_watch_key() local
1800 watch = kzalloc(sizeof(*watch), GFP_KERNEL); in keyctl_watch_key()
1801 if (!watch) in keyctl_watch_key()
1804 init_watch(watch, wqueue); in keyctl_watch_key()
1805 watch->id = key->serial; in keyctl_watch_key()
1806 watch->info_id = (u32)watch_id << WATCH_INFO_ID__SHIFT; in keyctl_watch_key()
1818 ret = add_watch_to_object(watch, key->watchers); in keyctl_watch_key()
1822 watch = NULL; in keyctl_watch_key()
1835 kfree(watch); in keyctl_watch_key()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/tile/
H A Dgeometry_tile_worker.cpp323 MBGL_TIMING_START(watch) in parse()
408 MBGL_TIMING_FINISH(watch, in parse()
434 MBGL_TIMING_START(watch) in performSymbolLayout()
477 MBGL_TIMING_FINISH(watch, in performSymbolLayout()
/OK3568_Linux_fs/yocto/poky/meta/recipes-connectivity/avahi/files/
H A Dhandle-hup.patch30 @@ -424,6 +424,11 @@ static void client_work(AvahiWatch *watch, AVAHI_GCC_UNUSED int fd, AvahiWatch…
40 watch,
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dwatch.c20 struct mips3264_watch_reg_state *watches = &t->thread.watch.mips3264; in mips_install_watch_registers()
53 &current->thread.watch.mips3264; in mips_read_watch_registers()

123456