/linux/kernel/ |
H A D | audit_watch.c | 111 kfree(watch); in audit_put_watch() 125 return watch->path; in audit_watch_path() 164 watch = kzalloc(sizeof(*watch), GFP_KERNEL); in audit_init_watch() 170 watch->path = path; in audit_init_watch() 174 return watch; in audit_init_watch() 193 if (IS_ERR(watch)) in audit_to_watch() 196 krule->watch = watch; in audit_to_watch() 368 struct audit_watch *w, *watch = krule->watch; in audit_add_to_parent() local 383 krule->watch = watch = w; in audit_add_to_parent() 402 struct audit_watch *watch = krule->watch; in audit_add_watch() local [all …]
|
H A D | watch_queue.c | 201 struct watch *watch; in __post_watch_notification() local 416 struct watch *watch = container_of(rcu, struct watch, rcu); in free_watch() local 421 kfree(watch); in free_watch() 426 struct watch *watch = container_of(kref, struct watch, usage); in __put_watch() local 434 static void put_watch(struct watch *watch) in put_watch() argument 446 void init_watch(struct watch *watch, struct watch_queue *wqueue) in init_watch() argument 457 struct watch *w; in add_one_watch() 528 struct watch *watch; in remove_watch_from_object() local 553 n.watch.info = watch->info_id | watch_sizeof(n.watch); in remove_watch_from_object() 556 n.watch.info = watch->info_id | watch_sizeof(n); in remove_watch_from_object() [all …]
|
H A D | auditfilter.c | 89 if (erule->watch) in audit_free_rule() 90 audit_put_watch(erule->watch); in audit_free_rule() 158 krule->inode_f || krule->watch || krule->tree || in audit_to_inode() 672 audit_watch_path(krule->watch)); in audit_krule_to_data() 737 if (strcmp(audit_watch_path(a->watch), in audit_compare_rule() 738 audit_watch_path(b->watch))) in audit_compare_rule() 816 * of the watch - that pointer is carried over. The LSM specific fields 891 if (old->watch) { in audit_dupe_rule() 892 audit_get_watch(old->watch); in audit_dupe_rule() 893 new->watch in audit_dupe_rule() 942 struct audit_watch *watch = entry->rule.watch; audit_add_rule() local [all...] |
H A D | audit.h | 267 extern void audit_put_watch(struct audit_watch *watch); 268 extern void audit_get_watch(struct audit_watch *watch); 273 extern char *audit_watch_path(struct audit_watch *watch); 274 extern int audit_watch_compare(struct audit_watch *watch, unsigned long ino,
|
/linux/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 235 kfree(watch->watch.node); in free_watch_adapter() 237 kfree(watch); in free_watch_adapter() 245 watch = kzalloc(sizeof(*watch), GFP_KERNEL); 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() 277 adap = container_of(watch, struct watch_adapter, watch); in watch_fired() 327 unregister_xenbus_watch(&watch->watch); in xenbus_worker() 521 watch->watch.callback = watch_fired; in xenbus_write_watch() 524 err = register_xenbus_watch(&watch->watch); in xenbus_write_watch() 534 !strcmp(watch->watch.node, path)) { in xenbus_write_watch() [all …]
|
H A D | xenbus_xs.c | 767 char token[sizeof(watch) * 2 + 1]; in register_xenbus_watch() 772 watch->nr_pending = 0; in register_xenbus_watch() 778 list_add(&watch->list, &watches); in register_xenbus_watch() 785 list_del(&watch->list); in register_xenbus_watch() 798 char token[sizeof(watch) * 2 + 1]; in unregister_xenbus_watch() 807 list_del(&watch->list); in unregister_xenbus_watch() 823 if (watch->nr_pending) { in unregister_xenbus_watch() 825 if (event->handle != watch) in unregister_xenbus_watch() 830 watch->nr_pending = 0; in unregister_xenbus_watch() 849 struct xenbus_watch *watch; in xs_resume() local [all …]
|
H A D | xenbus_probe_backend.c | 183 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 D | xenbus.h | 47 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 D | xenbus_client.c | 132 struct xenbus_watch *watch, in xenbus_watch_path() argument 140 watch->node = path; in xenbus_watch_path() 141 watch->will_handle = will_handle; in xenbus_watch_path() 142 watch->callback = callback; in xenbus_watch_path() 144 err = register_xenbus_watch(watch); in xenbus_watch_path() 147 watch->node = NULL; in xenbus_watch_path() 148 watch->will_handle = NULL; in xenbus_watch_path() 149 watch->callback = NULL; in xenbus_watch_path() 178 struct xenbus_watch *watch, in xenbus_watch_pathfmt() argument 197 err = xenbus_watch_path(dev, path, watch, will_handle, callback); in xenbus_watch_pathfmt()
|
H A D | xenbus_comms.c | 212 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()
|
/linux/Documentation/core-api/ |
H A D | watch_queue.rst | 102 watch that specific key). 128 a watch. These can be managed with: 145 A "watch" is a subscription on a watch list, indicating the watch queue, and 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 190 Remove a watch from a watch list, where the watch must match the specified [all …]
|
/linux/drivers/counter/ |
H A D | counter-chrdev.c | 139 struct counter_watch *const watch, in counter_set_event_node() argument 160 event_node->event = watch->event; in counter_set_event_node() 161 event_node->channel = watch->channel; in counter_set_event_node() 268 struct counter_watch watch; in counter_add_watch() local 276 if (copy_from_user(&watch, uwatch, sizeof(watch))) in counter_add_watch() 282 parent = watch.component.parent; in counter_add_watch() 285 switch (watch.component.scope) { in counter_add_watch() 314 id = watch.component.id; in counter_add_watch() 317 switch (watch.component.type) { in counter_add_watch() 645 ev.watch.event = event; in counter_push_event() [all …]
|
H A D | interrupt-cnt.c | 143 const struct counter_watch *watch) in interrupt_cnt_watch_validate() argument 145 if (watch->channel != 0 || in interrupt_cnt_watch_validate() 146 watch->event != COUNTER_EVENT_CHANGE_OF_STATE) in interrupt_cnt_watch_validate()
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | watch_queue.rst | 105 void (*release_watch)(struct watch *wlist)); 135 对象还可以携带该对象的过滤规则,由用户空间设置。watch结构体的某些部分可以由驱动程 138 struct watch { 159 * ``void init_watch(struct watch *watch, struct watch_queue *wqueue);`` 163 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);`` 165 将观测订阅到观测列表(通知源)。watch结构体中的driver-settable字段必须在调用 251 (watch.info & info_mask) == info_filter
|
/linux/tools/counter/ |
H A D | counter_watch_events.c | 58 static void print_watch(struct counter_watch *watch, int nwatch) in print_watch() argument 74 counter_component_type_name[watch[i].component.type], in print_watch() 75 counter_scope_name[watch[i].component.scope], in print_watch() 76 watch[i].component.parent, in print_watch() 77 watch[i].component.id, in print_watch() 78 counter_event_type_name[watch[i].event], in print_watch() 79 watch[i].channel); in print_watch() 390 counter_event_type_name[event_data.watch.event], in main() 391 event_data.watch.channel); in main()
|
/linux/include/linux/ |
H A D | watch_queue.h | 54 struct watch { struct 75 void (*release_watch)(struct watch *); argument 85 extern void init_watch(struct watch *, struct watch_queue *); 86 extern int add_watch_to_object(struct watch *, struct watch_list *); 95 void (*release_watch)(struct watch *)) in init_watch_list() argument
|
/linux/Documentation/userspace-api/gpio/ |
H A D | gpio-get-lineinfo-watch-ioctl.rst | 11 gpio-v2-get-lineinfo-watch-ioctl.rst. 34 the ``offset`` set to indicate the line to watch 55 Multiple lines may be watched simultaneously by adding a watch for each. 57 Once a watch is set, any changes to line info will generate events which can be 61 Adding a watch to a line that is already watched is an error (**EBUSY**).
|
H A D | gpio-get-lineinfo-unwatch-ioctl.rst | 29 The offset of the line to no longer watch. 36 This is the reverse of gpio-v2-get-lineinfo-watch-ioctl.rst (v2) and 37 gpio-get-lineinfo-watch-ioctl.rst (v1).
|
H A D | gpio-v2-get-lineinfo-watch-ioctl.rst | 30 the ``offset`` set to indicate the line to watch 50 Multiple lines may be watched simultaneously by adding a watch for each. 52 Once a watch is set, any changes to line info will generate events which can be 56 Adding a watch to a line that is already watched is an error (**EBUSY**).
|
/linux/tools/gpio/ |
H A D | Makefile | 21 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 D | Build | 5 gpio-watch-y += gpio-watch.o
|
/linux/include/xen/ |
H A D | xenbus.h | 191 int register_xenbus_watch(struct xenbus_watch *watch); 192 void unregister_xenbus_watch(struct xenbus_watch *watch); 210 struct xenbus_watch *watch, 216 int xenbus_watch_pathfmt(struct xenbus_device *dev, struct xenbus_watch *watch,
|
/linux/Documentation/filesystems/ |
H A D | inotify.rst | 18 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,
|
/linux/include/uapi/linux/ |
H A D | watch_queue.h | 75 struct watch_notification watch; member 99 struct watch_notification watch; member
|
/linux/security/keys/ |
H A D | internal.h | 184 .watch.type = WATCH_TYPE_KEY_NOTIFY, in notify_key() 185 .watch.subtype = subtype, in notify_key() 186 .watch.info = watch_sizeof(n), in notify_key() 191 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
|