Re: Should I return NOTIFY_DONE always from restart handler?

2020-03-24 Thread Pranay Srivastava
Hello, I believe you'll break the "chain" if you return an error. You might have registered as the last one so probably nothing would break but if someone registers on the notifier after your module did then that won't receive the notification if you throw an error and break the chain. Regards,

Should I return NOTIFY_DONE always from restart handler?

2020-03-24 Thread Tomek The Messenger
Hi There is such struct as 'notifier_block'. It has member 'notifier_call' where You assign pointer to your function (handler) and priority. Then You register such notifier block to restart handler list. Then when You type in linux reboot Your function might be invoked (depends on priority you set