summaryrefslogtreecommitdiffstats
path: root/include/sys/zfs_file.h
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-02-28 14:50:32 -0800
committerGitHub <[email protected]>2020-02-28 14:50:32 -0800
commitae9f92f6f31c81f4d1aa4602f812f912b4392e7c (patch)
tree1d9c28079e96eb6746a53140d7c2c02e5f945b8c /include/sys/zfs_file.h
parent9cdf7b1f6b00cdd0a31d07e3fbc679d0e9eff247 (diff)
Re-share zfsdev_getminor and zfs_onexit_fd_hold
By adding a zfs_file_private accessor to the common interfaces and some extensions to FreeBSD platform code it is now possible to share the implementations for the aforementioned functions. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10073
Diffstat (limited to 'include/sys/zfs_file.h')
-rw-r--r--include/sys/zfs_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/zfs_file.h b/include/sys/zfs_file.h
index 6b33420e3..d117933a6 100644
--- a/include/sys/zfs_file.h
+++ b/include/sys/zfs_file.h
@@ -57,5 +57,6 @@ int zfs_file_unlink(const char *);
int zfs_file_get(int fd, zfs_file_t **fp);
void zfs_file_put(int fd);
+void *zfs_file_private(zfs_file_t *fp);
#endif /* _SYS_ZFS_FILE_H */