diff options
author | Jorgen Lundman <[email protected]> | 2022-02-16 08:54:25 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-15 15:54:25 -0800 |
commit | 4759342a5eeabe168e0f658ba53e858566073085 (patch) | |
tree | 104dca9bcc8cfcb68218b2d5a6159774bdb8eb76 /include | |
parent | 2fb52853dcca555d8552832799e0f2557dee3f14 (diff) |
Add spa _os() hooks
Add hooks for when spa is created, exported, activated and
deactivated. Used by macOS to attach iokit, and lock
kext as busy (to stop unloads).
Userland, Linux, and, FreeBSD have empty stubs.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Jorgen Lundman <[email protected]>
Closes #12801
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/spa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index 896b0f956..2ce84c21c 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -1183,6 +1183,11 @@ extern int spa_wait_tag(const char *name, zpool_wait_activity_t activity, extern void spa_notify_waiters(spa_t *spa); extern void spa_wake_waiters(spa_t *spa); +extern void spa_import_os(spa_t *spa); +extern void spa_export_os(spa_t *spa); +extern void spa_activate_os(spa_t *spa); +extern void spa_deactivate_os(spa_t *spa); + /* module param call functions */ int param_set_deadman_ziotime(ZFS_MODULE_PARAM_ARGS); int param_set_deadman_synctime(ZFS_MODULE_PARAM_ARGS); |