// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2022-2024 Oracle. All Rights Reserved. * Author: Darrick J. Wong <[email protected]> */ #include "xfs.h" #include "xfs_fs.h" #include "xfs_shared.h" #include "xfs_format.h" #include "xfs_trans_resv.h" #include "xfs_mount.h" #include "xfs_ag.h" #include "xfs_trace.h" /* Initialize a notifier chain. */ void xfs_hooks_init( struct xfs_hooks *chain) { … } /* 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) { … } /* Remove a previously installed hook. */ void xfs_hooks_del( struct xfs_hooks *chain, struct xfs_hook *hook) { … } /* Call a hook. Returns the NOTIFY_* value returned by the last hook. */ int xfs_hooks_call( struct xfs_hooks *chain, unsigned long val, void *priv) { … }