zfs_context.h revision fd9ee8b58485b20072eeef1310a88ff348d5e7fa
19c5f19d69bb5f520fa7213239490c55de06d99dKay Sievers * CDDL HEADER START
19c5f19d69bb5f520fa7213239490c55de06d99dKay Sievers * The contents of this file are subject to the terms of the
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
#ifndef _SYS_ZFS_CONTEXT_H
#define _SYS_ZFS_CONTEXT_H
#ifdef __cplusplus
#define _SYS_MUTEX_H
#define _SYS_RWLOCK_H
#define _SYS_CONDVAR_H
#define _SYS_SYSTM_H
#define _SYS_DEBUG_H
#define _SYS_T_LOCK_H
#define _SYS_VNODE_H
#define _SYS_VFS_H
#define _SYS_SUNDDI_H
#define _SYS_CALLB_H
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <strings.h>
#include <synch.h>
#include <thread.h>
#include <assert.h>
#include <alloca.h>
#include <umem.h>
#include <limits.h>
#include <atomic.h>
#include <dirent.h>
#include <time.h>
#include <libsysevent.h>
#ifdef ZFS_DEBUG
extern void cmn_err(int, const char *, ...);
extern void panic(const char *, ...);
extern int aok;
/* This definition is copied from assert.h. */
#if defined(__STDC__)
extern void __assert(const char *, const char *, int);
#ifdef lint
#define VERIFY3_IMPL(x, y, z, t) if (x == z) ((void)0)
#ifdef NDEBUG
#define ASSERT3S(x, y, z) ((void)0)
#define ASSERT3U(x, y, z) ((void)0)
#define ASSERT3P(x, y, z) ((void)0)
#ifdef DTRACE_PROBE
#define DTRACE_PROBE(a) ((void)0)
#ifdef DTRACE_PROBE1
#define DTRACE_PROBE1(a, b, c) ((void)0)
#ifdef DTRACE_PROBE2
#define DTRACE_PROBE2(a, b, c, d, e) ((void)0)
#ifdef DTRACE_PROBE3
#define DTRACE_PROBE3(a, b, c, d, e, f, g) ((void)0)
#ifdef DTRACE_PROBE4
#define DTRACE_PROBE4(a, b, c, d, e, f, g, h, i) ((void)0)
struct proc {
typedef struct kmutex {
void *m_owner;
} kmutex_t;
typedef struct krwlock {
void *rw_owner;
} krwlock_t;
typedef int krw_t;
#define RW_READER 0
#define kmem_debugging() 0
typedef enum kmem_cbrc {
} kmem_cbrc_t;
typedef void (task_func_t)(void *);
#define taskq_create_proc(a, b, c, d, e, p, f) \
(taskq_create(a, b, c, d, e, f))
extern void system_taskq_init(void);
extern void system_taskq_fini(void);
typedef struct vnode {
int v_fd;
char *v_path;
} vnode_t;
typedef struct xoptattr {
} xoptattr_t;
typedef struct vattr {
} vattr_t;
typedef struct xvattr {
} xvattr_t;
typedef struct vsecattr {
} vsecattr_t;
#define CRCREAT 0
#define gethrestime(t) \
(t)->tv_nsec = 0;\
extern void kernel_init(int);
extern void kernel_fini(void);
struct spa;
typedef struct callb_cpr {
} callb_cpr_t;
unsigned long *result);
struct _buf {
struct bootstat {
typedef struct ace_object {
} ace_object_t;
unsigned off);
typedef struct ksiddomain {
char *kd_name;
} ksiddomain_t;
#ifdef __cplusplus