xref: /freebsd/lib/libprocstat/zfs_defs.h (revision b3e76948)
18a719b0cSAndriy Gapon /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
38a719b0cSAndriy Gapon  *
48a719b0cSAndriy Gapon  * Copyright (c) 2020 Andriy Gapon <avg@FreeBSD.org>
58a719b0cSAndriy Gapon  *
68a719b0cSAndriy Gapon  * Redistribution and use in source and binary forms, with or without
78a719b0cSAndriy Gapon  * modification, are permitted provided that the following conditions
88a719b0cSAndriy Gapon  * are met:
98a719b0cSAndriy Gapon  * 1. Redistributions of source code must retain the above copyright
108a719b0cSAndriy Gapon  *    notice, this list of conditions and the following disclaimer.
118a719b0cSAndriy Gapon  * 2. Redistributions in binary form must reproduce the above copyright
128a719b0cSAndriy Gapon  *    notice, this list of conditions and the following disclaimer in the
138a719b0cSAndriy Gapon  *    documentation and/or other materials provided with the distribution.
148a719b0cSAndriy Gapon  *
158a719b0cSAndriy Gapon  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
168a719b0cSAndriy Gapon  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
178a719b0cSAndriy Gapon  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
188a719b0cSAndriy Gapon  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
198a719b0cSAndriy Gapon  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
208a719b0cSAndriy Gapon  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
218a719b0cSAndriy Gapon  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
228a719b0cSAndriy Gapon  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
238a719b0cSAndriy Gapon  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
248a719b0cSAndriy Gapon  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
258a719b0cSAndriy Gapon  * SUCH DAMAGE.
268a719b0cSAndriy Gapon  */
278a719b0cSAndriy Gapon 
288a719b0cSAndriy Gapon #ifndef _LIBPROCSTAT_ZFS_DEFS_H
298a719b0cSAndriy Gapon #define _LIBPROCSTAT_ZFS_DEFS_H
308a719b0cSAndriy Gapon 
318a719b0cSAndriy Gapon extern size_t sizeof_znode_t;
328a719b0cSAndriy Gapon extern size_t offsetof_z_id;
338a719b0cSAndriy Gapon extern size_t offsetof_z_size;
348a719b0cSAndriy Gapon extern size_t offsetof_z_mode;
358a719b0cSAndriy Gapon 
368a719b0cSAndriy Gapon #endif 	/* _LIBPROCSTAT_ZFS_DEFS_H */
37