Skip to content

Commit 2ffdcbc

Browse files
committed
zfs_context: misc userspace specials to zfs_context_os
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <[email protected]>
1 parent e52e433 commit 2ffdcbc

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

include/sys/zfs_context.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -142,27 +142,9 @@ extern "C" {
142142
typedef off_t loff_t;
143143
#endif
144144

145-
extern char *vn_dumpdir;
146-
147-
extern uint64_t physmem;
148-
extern const char *random_path;
149-
extern const char *urandom_path;
150-
151-
extern void kernel_init(int mode);
152-
extern void kernel_fini(void);
153145
extern void random_init(void);
154146
extern void random_fini(void);
155147

156-
struct spa;
157-
extern void show_pool_stats(struct spa *);
158-
extern int handle_tunable_option(const char *, boolean_t);
159-
160-
/*
161-
* Hostname information
162-
*/
163-
typedef struct utsname utsname_t;
164-
extern utsname_t *utsname(void);
165-
166148
/*
167149
* Kernel modules
168150
*/

lib/libspl/include/sys/zfs_context_os.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,26 @@
3131

3232
#define HAVE_LARGE_STACKS 1
3333

34+
extern char *vn_dumpdir;
35+
36+
extern uint64_t physmem;
37+
extern const char *random_path;
38+
extern const char *urandom_path;
39+
40+
/*
41+
* Hostname information
42+
*/
43+
typedef struct utsname utsname_t;
44+
extern utsname_t *utsname(void);
45+
46+
extern void kernel_init(int mode);
47+
extern void kernel_fini(void);
48+
49+
struct spa;
50+
extern void show_pool_stats(struct spa *);
51+
extern int handle_tunable_option(const char *, boolean_t);
52+
53+
extern void kernel_init(int mode);
54+
extern void kernel_fini(void);
55+
3456
#endif

0 commit comments

Comments
 (0)