Changeset 615 for GPL/branches/uniaud32-next/include/linux/notifier.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/notifier.h
r32 r615 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.