mirror of
https://github.com/AuxXxilium/arc-lkm.git
synced 2024-11-23 14:50:57 +07:00
d288da5003
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
14 lines
735 B
C
Executable File
14 lines
735 B
C
Executable File
#ifndef REDPILL_NOTIFIER_BASE_H
|
|
#define REDPILL_NOTIFIER_BASE_H
|
|
|
|
#define notifier_reg_in() pr_loc_dbg("Registering %s notifier", NOTIFIER_NAME);
|
|
#define notifier_reg_ok() pr_loc_inf("Successfully registered %s notifier", NOTIFIER_NAME);
|
|
#define notifier_ureg_in() pr_loc_dbg("Unregistering %s notifier", NOTIFIER_NAME);
|
|
#define notifier_ureg_ok() pr_loc_inf("Successfully unregistered %s notifier", NOTIFIER_NAME);
|
|
#define notifier_sub(nb) \
|
|
pr_loc_dbg("%pF (priority=%d) subscribed to %s events", (nb)->notifier_call, (nb)->priority, NOTIFIER_NAME);
|
|
#define notifier_unsub(nb) \
|
|
pr_loc_dbg("%pF (priority=%d) unsubscribed from %s events", (nb)->notifier_call, (nb)->priority, NOTIFIER_NAME);
|
|
|
|
#endif //REDPILL_NOTIFIER_BASE_H
|