Changeset 679 for GPL/trunk/include/linux/notifier.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/notifier.h
r32 r679 11 11 #define _LINUX_NOTIFIER_H 12 12 #include <linux/errno.h> 13 #include <linux/rwsem.h> 14 15 typedef int (*notifier_fn_t)(struct notifier_block *nb, 16 unsigned long action, void *data); 13 17 14 18 struct notifier_block … … 18 22 int priority; 19 23 }; 24 25 struct atomic_notifier_head { 26 spinlock_t lock; 27 struct notifier_block *head; 28 }; 29 30 struct blocking_notifier_head { 31 struct semaphore rwsem; 32 struct notifier_block *head; 33 }; 34 20 35 21 36 … … 113 128 114 129 #endif 130 #define BLOCKING_INIT_NOTIFIER_HEAD(name) do { \ 131 init_rwsem(&(name)->rwsem); \ 132 (name)->head = NULL; \ 133 } while (0) 115 134 #endif
Note:
See TracChangeset
for help on using the changeset viewer.