Deleted Added
full compact
zfs_context.h (249195) zfs_context.h (254591)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 645 unchanged lines hidden (view full) ---

654
655typedef uint32_t idmap_rid_t;
656
657#define DDI_SLEEP KM_SLEEP
658#define ddi_log_sysevent(_a, _b, _c, _d, _e, _f, _g) (0)
659
660#define SX_SYSINIT(name, lock, desc)
661
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 645 unchanged lines hidden (view full) ---

654
655typedef uint32_t idmap_rid_t;
656
657#define DDI_SLEEP KM_SLEEP
658#define ddi_log_sysevent(_a, _b, _c, _d, _e, _f, _g) (0)
659
660#define SX_SYSINIT(name, lock, desc)
661
662#define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, \
663 intptr_t arg2, struct sysctl_req *req
664
665/*
666 * This describes the access space for a sysctl request. This is needed
667 * so that we can use the interface from the kernel or from user-space.
668 */
669struct sysctl_req {
670 struct thread *td; /* used for access checking */
671 int lock; /* wiring state */
672 void *oldptr;
673 size_t oldlen;
674 size_t oldidx;
675 int (*oldfunc)(struct sysctl_req *, const void *, size_t);
676 void *newptr;
677 size_t newlen;
678 size_t newidx;
679 int (*newfunc)(struct sysctl_req *, void *, size_t);
680 size_t validlen;
681 int flags;
682};
683
684SLIST_HEAD(sysctl_oid_list, sysctl_oid);
685
686/*
687 * This describes one "oid" in the MIB tree. Potentially more nodes can
688 * be hidden behind it, expanded by the handler.
689 */
690struct sysctl_oid {
691 struct sysctl_oid_list *oid_parent;
692 SLIST_ENTRY(sysctl_oid) oid_link;
693 int oid_number;
694 u_int oid_kind;
695 void *oid_arg1;
696 intptr_t oid_arg2;
697 const char *oid_name;
698 int (*oid_handler)(SYSCTL_HANDLER_ARGS);
699 const char *oid_fmt;
700 int oid_refcnt;
701 u_int oid_running;
702 const char *oid_descr;
703};
704
662#define SYSCTL_DECL(...)
663#define SYSCTL_NODE(...)
664#define SYSCTL_INT(...)
665#define SYSCTL_UINT(...)
666#define SYSCTL_ULONG(...)
705#define SYSCTL_DECL(...)
706#define SYSCTL_NODE(...)
707#define SYSCTL_INT(...)
708#define SYSCTL_UINT(...)
709#define SYSCTL_ULONG(...)
710#define SYSCTL_PROC(...)
667#define SYSCTL_QUAD(...)
668#define SYSCTL_UQUAD(...)
669#ifdef TUNABLE_INT
670#undef TUNABLE_INT
671#undef TUNABLE_ULONG
672#undef TUNABLE_QUAD
673#endif
674#define TUNABLE_INT(...)
675#define TUNABLE_ULONG(...)
676#define TUNABLE_QUAD(...)
677
711#define SYSCTL_QUAD(...)
712#define SYSCTL_UQUAD(...)
713#ifdef TUNABLE_INT
714#undef TUNABLE_INT
715#undef TUNABLE_ULONG
716#undef TUNABLE_QUAD
717#endif
718#define TUNABLE_INT(...)
719#define TUNABLE_ULONG(...)
720#define TUNABLE_QUAD(...)
721
722int sysctl_handle_64(SYSCTL_HANDLER_ARGS);
723
678/* Errors */
679
680#ifndef ERESTART
681#define ERESTART (-1)
682#endif
683
684#ifdef illumos
685/*

--- 33 unchanged lines hidden ---
724/* Errors */
725
726#ifndef ERESTART
727#define ERESTART (-1)
728#endif
729
730#ifdef illumos
731/*

--- 33 unchanged lines hidden ---