/kernel/linux/linux-5.10/kernel/ |
H A D | audit_watch.c | 33 * audit_krule holds a reference to its associated watch. 100 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 123 audit_watch_path(struct audit_watch *watch) audit_watch_path() argument 128 audit_watch_compare(struct audit_watch *watch, unsigned long ino, dev_t dev) audit_watch_compare() argument 162 struct audit_watch *watch; audit_init_watch() local 180 struct audit_watch *watch; audit_to_watch() local 347 audit_get_nd(struct audit_watch *watch, struct path *parent) audit_get_nd() argument 367 struct audit_watch *w, *watch = krule->watch; audit_add_to_parent() local 401 struct audit_watch *watch = krule->watch; audit_add_watch() local 448 struct audit_watch *watch = krule->watch; audit_remove_watch_rule() local [all...] |
H A D | watch_queue.c | 92 * Post a notification to a watch queue. 187 * @wlist: The watch list to post the event to. 190 * @id: The ID to match on the watch. 192 * Post a notification of an event into a set of watch queues and let the users 205 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 in __post_watch_notification() 423 struct watch *watch = container_of(rcu, struct watch, rcu); free_watch() local 433 struct watch *watch = container_of(kref, struct watch, usage); __put_watch() local 441 put_watch(struct watch *watch) put_watch() argument 453 init_watch(struct watch *watch, struct watch_queue *wqueue) init_watch() argument 461 add_one_watch(struct watch *watch, struct watch_list *wlist, struct watch_queue *wqueue) add_one_watch() argument 500 add_watch_to_object(struct watch *watch, struct watch_list *wlist) add_watch_to_object() argument 535 struct watch *watch; remove_watch_from_object() local 604 struct watch *watch; watch_queue_clear() local [all...] |
H A D | auditfilter.c | 87 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() 806 * of the watch - that pointer is carried over. The LSM specific fields 881 if (old->watch) { in audit_dupe_rule() 882 audit_get_watch(old->watch); in audit_dupe_rule() 883 new->watch in audit_dupe_rule() 933 struct audit_watch *watch = entry->rule.watch; audit_add_rule() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | audit_watch.c | 33 * audit_krule holds a reference to its associated watch. 100 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 123 audit_watch_path(struct audit_watch *watch) audit_watch_path() argument 128 audit_watch_compare(struct audit_watch *watch, unsigned long ino, dev_t dev) audit_watch_compare() argument 162 struct audit_watch *watch; audit_init_watch() local 180 struct audit_watch *watch; audit_to_watch() local 348 audit_get_nd(struct audit_watch *watch, struct path *parent) audit_get_nd() argument 368 struct audit_watch *w, *watch = krule->watch; audit_add_to_parent() local 402 struct audit_watch *watch = krule->watch; audit_add_watch() local 449 struct audit_watch *watch = krule->watch; audit_remove_watch_rule() local [all...] |
H A D | watch_queue.c | 91 * Post a notification to a watch queue. 183 * @wlist: The watch list to post the event to. 186 * @id: The ID to match on the watch. 188 * Post a notification of an event into a set of watch queues and let the users 201 struct watch *watch; in __post_watch_notification() local 210 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification() 211 if (watch->id != id) in __post_watch_notification() 214 n->info |= watch->info_id; in __post_watch_notification() 216 wqueue = rcu_dereference(watch in __post_watch_notification() 416 struct watch *watch = container_of(rcu, struct watch, rcu); free_watch() local 426 struct watch *watch = container_of(kref, struct watch, usage); __put_watch() local 434 put_watch(struct watch *watch) put_watch() argument 446 init_watch(struct watch *watch, struct watch_queue *wqueue) init_watch() argument 454 add_one_watch(struct watch *watch, struct watch_list *wlist, struct watch_queue *wqueue) add_one_watch() argument 493 add_watch_to_object(struct watch *watch, struct watch_list *wlist) add_watch_to_object() argument 528 struct watch *watch; remove_watch_from_object() local 597 struct watch *watch; watch_queue_clear() local [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() 671 audit_watch_path(krule->watch)); in audit_krule_to_data() 736 if (strcmp(audit_watch_path(a->watch), in audit_compare_rule() 737 audit_watch_path(b->watch))) in audit_compare_rule() 815 * of the watch - that pointer is carried over. The LSM specific fields 890 if (old->watch) { in audit_dupe_rule() 891 audit_get_watch(old->watch); in audit_dupe_rule() 892 new->watch in audit_dupe_rule() 942 struct audit_watch *watch = entry->rule.watch; audit_add_rule() local [all...] |
/kernel/linux/linux-5.10/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 97 * alone during a watch callback. 228 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_KERNE in alloc_watch_adapter() 266 watch_fired(struct xenbus_watch *watch, const char *path, const char *token) watch_fired() argument 310 struct watch_adapter *watch, *tmp_watch; xenbus_worker() local 498 struct watch_adapter *watch; xenbus_write_watch() local [all...] |
H A D | xenbus_xs.c | 59 * New watch events happening in this time can be ignored by firing all watches 81 /* List of pending watch callback events, and a lock to protect it. */ 85 /* Protect watch (de)register against save/restore. */ 763 /* Register callback to watch this node. */ 764 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 in register_xenbus_watch() 795 unregister_xenbus_watch(struct xenbus_watch *watch) unregister_xenbus_watch() argument 849 struct xenbus_watch *watch; xs_resume() local [all...] |
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_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 250 /* Enumerate devices in xenstore and watch for changes. */ in backend_probe_and_watch()
|
H A D | xenbus_client.c | 115 * xenbus_watch_path - register a watch 117 * @path: path to watch 118 * @watch: watch to register 121 * Register a @watch on the given path, using the given xenbus_watch structure 124 * @watch->node, and remains the caller's to free. On error, @watch->node will 129 struct xenbus_watch *watch, in xenbus_watch_path() 137 watch->node = path; in xenbus_watch_path() 138 watch in xenbus_watch_path() 128 xenbus_watch_path(struct xenbus_device *dev, const char *path, struct xenbus_watch *watch, bool (*will_handle)(struct xenbus_watch *, const char *, const char *), void (*callback)(struct xenbus_watch *, const char *, const char *)) xenbus_watch_path() argument 170 xenbus_watch_pathfmt(struct xenbus_device *dev, struct xenbus_watch *watch, bool (*will_handle)(struct xenbus_watch *, const char *, const char *), void (*callback)(struct xenbus_watch *, const char *, const char *), const char *pathfmt, ...) xenbus_watch_pathfmt() argument [all...] |
/kernel/linux/linux-6.6/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 97 * alone during a watch callback. 228 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_KERNE in alloc_watch_adapter() 266 watch_fired(struct xenbus_watch *watch, const char *path, const char *token) watch_fired() argument 310 struct watch_adapter *watch, *tmp_watch; xenbus_worker() local 498 struct watch_adapter *watch; xenbus_write_watch() local [all...] |
H A D | xenbus_xs.c | 59 * New watch events happening in this time can be ignored by firing all watches 81 /* List of pending watch callback events, and a lock to protect it. */ 85 /* Protect watch (de)register against save/restore. */ 763 /* Register callback to watch this node. */ 764 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 in register_xenbus_watch() 795 unregister_xenbus_watch(struct xenbus_watch *watch) unregister_xenbus_watch() argument 849 struct xenbus_watch *watch; xs_resume() local [all...] |
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_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 250 /* Enumerate devices in xenstore and watch for changes. */ in backend_probe_and_watch()
|
H A D | xenbus_client.c | 115 * xenbus_watch_path - register a watch 117 * @path: path to watch 118 * @watch: watch to register 121 * Register a @watch on the given path, using the given xenbus_watch structure 124 * @watch->node, and remains the caller's to free. On error, @watch->node will 129 struct xenbus_watch *watch, in xenbus_watch_path() 137 watch->node = path; in xenbus_watch_path() 138 watch in xenbus_watch_path() 128 xenbus_watch_path(struct xenbus_device *dev, const char *path, struct xenbus_watch *watch, bool (*will_handle)(struct xenbus_watch *, const char *, const char *), void (*callback)(struct xenbus_watch *, const char *, const char *)) xenbus_watch_path() argument 170 xenbus_watch_pathfmt(struct xenbus_device *dev, struct xenbus_watch *watch, bool (*will_handle)(struct xenbus_watch *, const char *, const char *), void (*callback)(struct xenbus_watch *, const char *, const char *), const char *pathfmt, ...) xenbus_watch_pathfmt() argument [all...] |
/kernel/linux/linux-6.6/drivers/counter/ |
H A D | counter-chrdev.c | 139 struct counter_watch *const watch, in counter_set_event_node() 148 if (event_node->event == watch->event && in counter_set_event_node() 149 event_node->channel == watch->channel) in counter_set_event_node() 160 event_node->event = watch->event; in counter_set_event_node() 161 event_node->channel = watch->channel; in counter_set_event_node() 166 /* Check if component watch has already been set before */ 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() 279 if (watch in counter_add_watch() 138 counter_set_event_node(struct counter_device *const counter, struct counter_watch *const watch, const struct counter_comp_node *const cfg) counter_set_event_node() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | watch_queue.h | 2 /* User-mappable watch queue 52 * Representation of a watch on an object. 54 struct watch { struct 63 const struct cred *cred; /* Creds of the owner of the watch */ 75 void (*release_watch)(struct watch *); 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() 120 * watch_sizeof - Calculate the information part of the size of a watch record,
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | watch_queue.h | 2 /* User-mappable watch queue 53 * Representation of a watch on an object. 55 struct watch { struct 64 const struct cred *cred; /* Creds of the owner of the watch */ 76 void (*release_watch)(struct watch *); 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() 121 * watch_sizeof - Calculate the information part of the size of a watch record,
|
/kernel/linux/linux-5.10/tools/gpio/ |
H A D | Makefile | 21 ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon gpio-watch 70 # gpio-watch 72 GPIO_WATCH_IN := $(OUTPUT)gpio-watch-in.o 74 $(Q)$(MAKE) $(build)=gpio-watch 75 $(OUTPUT)gpio-watch: $(GPIO_WATCH_IN)
|
/kernel/linux/linux-6.6/tools/gpio/ |
H A D | Makefile | 21 ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon gpio-watch 70 # gpio-watch 72 GPIO_WATCH_IN := $(OUTPUT)gpio-watch-in.o 74 $(Q)$(MAKE) $(build)=gpio-watch 75 $(OUTPUT)gpio-watch: $(GPIO_WATCH_IN)
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | ptrace.c | 39 #include <asm/watch.h> 591 child->thread.watch.irwmask[boot_cpu_data.watch_dreg_count] = 0; in ptrace_get_watch_regs() 598 __put_user(child->thread.watch.addr[i], &addr->WATCH_STYLE[i].addr); in ptrace_get_watch_regs() 599 __put_user(child->thread.watch.mask[i], &addr->WATCH_STYLE[i].mask); in ptrace_get_watch_regs() 600 __put_user(child->thread.watch.irw[i], &addr->WATCH_STYLE[i].irw); in ptrace_get_watch_regs() 601 __put_user(child->thread.watch.irwstat[i], &addr->WATCH_STYLE[i].irwstat); in ptrace_get_watch_regs() 602 __put_user(child->thread.watch.irwmask[i], &addr->WATCH_STYLE[i].irwmask); in ptrace_get_watch_regs() 647 child->thread.watch.addr[i] = addrt[i]; in ptrace_set_watch_regs() 648 child->thread.watch.mask[i] = maskt[i]; in ptrace_set_watch_regs() 649 child->thread.watch in ptrace_set_watch_regs() [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | watch.c | 12 #include <asm/watch.h> 15 * Install the watch registers for the current thread. A maximum of 20 struct mips3264_watch_reg_state *watches = &t->thread.watch.mips3264; in mips_install_watch_registers() 53 ¤t->thread.watch.mips3264; in mips_read_watch_registers() 75 * since we got here, the watch condition was met and in mips_read_watch_registers() 83 * Disable all watch registers. Although only four registers are 85 * looping in the watch handler.
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | watch.c | 12 #include <asm/watch.h> 15 * Install the watch registers for the current thread. A maximum of 20 struct mips3264_watch_reg_state *watches = &t->thread.watch.mips3264; in mips_install_watch_registers() 53 ¤t->thread.watch.mips3264; in mips_read_watch_registers() 75 * since we got here, the watch condition was met and in mips_read_watch_registers() 83 * Disable all watch registers. Although only four registers are 85 * looping in the watch handler.
|
/kernel/linux/linux-5.10/include/xen/ |
H A D | xenbus.h | 56 /* Register callback to watch this node. */ 187 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,
|