Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/notifier.h

    r32 r679  
    1111#define _LINUX_NOTIFIER_H
    1212#include <linux/errno.h>
     13#include <linux/rwsem.h>
     14
     15typedef int (*notifier_fn_t)(struct notifier_block *nb,
     16                        unsigned long action, void *data);
    1317
    1418struct notifier_block
     
    1822        int priority;
    1923};
     24
     25struct atomic_notifier_head {
     26        spinlock_t lock;
     27        struct notifier_block *head;
     28};
     29
     30struct blocking_notifier_head {
     31        struct semaphore rwsem;
     32        struct notifier_block *head;
     33};
     34
    2035
    2136
     
    113128 
    114129#endif
     130#define BLOCKING_INIT_NOTIFIER_HEAD(name) do {  \
     131                init_rwsem(&(name)->rwsem);     \
     132                (name)->head = NULL;            \
     133        } while (0)
    115134#endif
Note: See TracChangeset for help on using the changeset viewer.