/* Make it so a function gets called whenever we hit a certain hook point. */ int
xfs_hooks_add( struct xfs_hooks *chain, struct xfs_hook *hook)
{
ASSERT(hook->nb.notifier_call != NULL);
BUILD_BUG_ON(offsetof(struct xfs_hook, nb) != 0);
/* Call a hook. Returns the NOTIFY_* value returned by the last hook. */ int
xfs_hooks_call( struct xfs_hooks *chain, unsignedlong val, void *priv)
{ return blocking_notifier_call_chain(&chain->head, val, priv);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.