notifier: Add atomic/blocking_notifier_chain_register_unique_prio()
authorDmitry Osipenko <digetx@gmail.com>
Sun, 30 Jan 2022 23:36:59 +0000 (02:36 +0300)
committerHector Martin <marcan@marcan.st>
Tue, 8 Feb 2022 05:49:05 +0000 (14:49 +0900)
commit4da934ad9ce75f474a970bfd9ac5584c8b5497ba
tree63f235fdc4af06b68fc818b395c0f8a6e50854c8
parent665ec8e9951eb420fbaa7880d1e70146b3c5c292
notifier: Add atomic/blocking_notifier_chain_register_unique_prio()

Add variant of atomic/blocking_notifier_chain_register() functions that
doesn't allow to register notifier using a duplicated priority. The -EBUSY
error code is returned in this case by the new API functions.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
include/linux/notifier.h
kernel/notifier.c