« Previous | Next » 

Revision 5dae8e5f

ID5dae8e5fb803f53fadc116cefe353953b938cbe1

Added by Stefan Hajnoczi almost 11 years ago

notify: add NotiferWithReturn so notifier list can abort

notifier_list_notify() has no return value. This is fine when we just
want to invoke side-effects.

Sometimes it's useful for notifiers to produce a return value. This
allows notifiers to "veto" an operation and will be used by the block
layer before-write notifier.

Reviewed-by: Eric Blake <>
Reviewed-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences