Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/notifier.h

    r32 r615  
    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.