/linux-master/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) argument 102 refcount_inc(&watch->count); 105 void audit_put_watch(struct audit_watch *watch) argument 107 if (refcount_dec_and_test(&watch->count)) { 108 WARN_ON(watch->parent); 109 WARN_ON(!list_empty(&watch->rules)); 110 kfree(watch->path); 111 kfree(watch); 115 static void audit_remove_watch(struct audit_watch *watch) argument 123 audit_watch_path(struct audit_watch *watch) argument 128 audit_watch_compare(struct audit_watch *watch, unsigned long ino, dev_t dev) argument 162 struct audit_watch *watch; local 180 struct audit_watch *watch; local 348 audit_get_nd(struct audit_watch *watch, struct path *parent) argument 368 struct audit_watch *w, *watch = krule->watch; local 402 struct audit_watch *watch = krule->watch; local 449 struct audit_watch *watch = krule->watch; 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; local 210 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { 211 if (watch->id != id) 214 n->info |= watch->info_id; 216 wqueue = rcu_dereference(watch 416 struct watch *watch = container_of(rcu, struct watch, rcu); local 426 struct watch *watch = container_of(kref, struct watch, usage); local 434 put_watch(struct watch *watch) argument 446 init_watch(struct watch *watch, struct watch_queue *wqueue) argument 454 add_one_watch(struct watch *watch, struct watch_list *wlist, struct watch_queue *wqueue) argument 493 add_watch_to_object(struct watch *watch, struct watch_list *wlist) argument 528 struct watch *watch; local 597 struct watch *watch; local [all...] |
H A D | audit.h | 261 /* audit watch/mark/tree functions */ 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,
|
H A D | auditfilter.c | 89 if (erule->watch) 90 audit_put_watch(erule->watch); 158 krule->inode_f || krule->watch || krule->tree || 671 audit_watch_path(krule->watch)); 736 if (strcmp(audit_watch_path(a->watch), 737 audit_watch_path(b->watch))) 815 * of the watch - that pointer is carried over. The LSM specific fields 890 if (old->watch) { 891 audit_get_watch(old->watch); 892 new->watch 942 struct audit_watch *watch = entry->rule.watch; local [all...] |
/linux-master/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 97 * alone during a watch callback. 228 struct xenbus_watch watch; member in struct:watch_adapter 233 static void free_watch_adapter(struct watch_adapter *watch) argument 235 kfree(watch->watch.node); 236 kfree(watch->token); 237 kfree(watch); 243 struct watch_adapter *watch; local 245 watch = kzalloc(sizeof(*watch), GFP_KERNE 266 watch_fired(struct xenbus_watch *watch, const char *path, const char *token) argument 310 struct watch_adapter *watch, *tmp_watch; local 498 struct watch_adapter *watch; 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_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) argument 767 char token[sizeof(watch) * 2 + 1]; 770 sprintf(token, "%lX", (long)watch); 772 watch->nr_pending = 0; 778 list_add(&watch->list, &watches); 781 err = xs_watch(watch 795 unregister_xenbus_watch(struct xenbus_watch *watch) argument 849 struct xenbus_watch *watch; local [all...] |
H A D | xenbus_probe_backend.c | 183 static bool frontend_will_handle(struct xenbus_watch *watch, argument 186 return watch->nr_pending == 0; 189 static void frontend_changed(struct xenbus_watch *watch, argument 192 xenbus_otherend_changed(watch, path, token, 0); 212 static void backend_changed(struct xenbus_watch *watch, argument 250 /* Enumerate devices in xenstore and watch for changes. */
|
H A D | xenbus_client.c | 115 * xenbus_watch_path - register a watch 117 * @path: path to watch 118 * @watch: watch to register 122 * Register a @watch on the given path, using the given xenbus_watch structure 125 * On success, the given @path will be saved as @watch->node, and remains the 126 * caller's to free. On error, @watch->node will be NULL, the device will 132 struct xenbus_watch *watch, 140 watch->node = path; 141 watch 131 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 *)) argument 177 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, ...) argument [all...] |
H A D | xenbus_comms.c | 212 struct xs_watch_event *watch; member in union:__anon50::__anon51 262 len += sizeof(*state.watch); 269 state.body = state.watch->body; 287 state.watch->len = state.msg.len; 288 err = xs_watch_msg(state.watch);
|
/linux-master/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 *)) 120 * watch_sizeof - Calculate the information part of the size of a watch record,
|
/linux-master/tools/counter/ |
H A D | counter_watch_events.c | 3 * Counter Watch Events - Test various counter watch events in a userspace application 58 static void print_watch(struct counter_watch *watch, int nwatch) argument 62 /* prints the watch array in C-like structure */ 63 printf("watch[%d] = {\n", nwatch); 74 counter_component_type_name[watch[i].component.type], 75 counter_scope_name[watch[i].component.scope], 76 watch[i].component.parent, 77 watch[i].component.id, 78 counter_event_type_name[watch[i].event], 79 watch[ [all...] |
/linux-master/drivers/counter/ |
H A D | counter-chrdev.c | 139 struct counter_watch *const watch, 148 if (event_node->event == watch->event && 149 event_node->channel == watch->channel) 160 event_node->event = watch->event; 161 event_node->channel = watch->channel; 166 /* Check if component watch has already been set before */ 268 struct counter_watch watch; local 276 if (copy_from_user(&watch, uwatch, sizeof(watch))) 279 if (watch 138 counter_set_event_node(struct counter_device *const counter, struct counter_watch *const watch, const struct counter_comp_node *const cfg) argument [all...] |
H A D | interrupt-cnt.c | 143 const struct counter_watch *watch) 145 if (watch->channel != 0 || 146 watch->event != COUNTER_EVENT_CHANGE_OF_STATE) 142 interrupt_cnt_watch_validate(struct counter_device *counter, const struct counter_watch *watch) argument
|
/linux-master/include/uapi/linux/ |
H A D | watch_queue.h | 67 * Extended watch removal notification. This is used optionally if the type 75 struct watch_notification watch; member in struct:watch_notification_removal 95 * - watch.type = WATCH_TYPE_KEY_NOTIFY 96 * - watch.subtype = enum key_notification_type 99 struct watch_notification watch; member in struct:key_notification
|
H A D | counter.h | 71 * struct counter_watch - Counter component watch configuration 72 * @component: component to watch when event triggers 84 * Queues a Counter watch for the specified event. 108 * @watch: component watch configuration 114 struct counter_watch watch; member in struct:counter_event
|
/linux-master/arch/mips/kernel/ |
H A D | pm.c | 15 #include <asm/watch.h> 54 /* Restore watch registers */
|
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; 53 ¤t->thread.watch.mips3264; 75 * since we got here, the watch condition was met and 83 * Disable all watch registers. Although only four registers are 85 * looping in the watch handler.
|
/linux-master/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)
|
/linux-master/include/xen/ |
H A D | xenbus.h | 55 /* Register callback to watch this node. */ 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-master/arch/loongarch/kernel/ |
H A D | genex.S | 98 BUILD_HANDLER watch watch none
|
/linux-master/drivers/xen/ |
H A D | cpu_hotplug.c | 72 static void handle_vcpu_hotplug_event(struct xenbus_watch *watch, argument
|
/linux-master/arch/mips/include/asm/ |
H A D | switch_to.h | 16 #include <asm/watch.h>
|
/linux-master/security/keys/ |
H A D | internal.h | 184 .watch.type = WATCH_TYPE_KEY_NOTIFY, 185 .watch.subtype = subtype, 186 .watch.info = watch_sizeof(n), 191 post_watch_notification(key->watchers, &n.watch, current_cred(),
|
H A D | keyctl.c | 1770 * The caller must have View permission to watch a key or keyring. 1776 struct watch *watch = NULL; local 1804 watch = kzalloc(sizeof(*watch), GFP_KERNEL); 1805 if (!watch) 1808 init_watch(watch, wqueue); 1809 watch->id = key->serial; 1810 watch->info_id = (u32)watch_id << WATCH_INFO_ID__SHIFT; 1822 ret = add_watch_to_object(watch, ke [all...] |