1 // SPDX-License-Identifier: CDDL-1.0 2 /* 3 * CDDL HEADER START 4 * 5 * The contents of this file are subject to the terms of the 6 * Common Development and Distribution License (the "License"). 7 * You may not use this file except in compliance with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or https://opensource.org/licenses/CDDL-1.0. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 24 * Copyright (c) 2012, 2018 by Delphix. All rights reserved. 25 * Copyright (c) 2016 Actifio, Inc. All rights reserved. 26 * Copyright (c) 2025, Klara, Inc. 27 */ 28 29 #include <sys/kstat.h> 30 31 /* 32 * ========================================================================= 33 * kstats 34 * ========================================================================= 35 */ 36 kstat_t * 37 kstat_create(const char *module, int instance, const char *name, 38 const char *class, uchar_t type, ulong_t ndata, uchar_t ks_flag) 39 { 40 (void) module, (void) instance, (void) name, (void) class, (void) type, 41 (void) ndata, (void) ks_flag; 42 return (NULL); 43 } 44 45 void 46 kstat_install(kstat_t *ksp) 47 { 48 (void) ksp; 49 } 50 51 void 52 kstat_delete(kstat_t *ksp) 53 { 54 (void) ksp; 55 } 56 57 void 58 kstat_set_raw_ops(kstat_t *ksp, 59 int (*headers)(char *buf, size_t size), 60 int (*data)(char *buf, size_t size, void *data), 61 void *(*addr)(kstat_t *ksp, loff_t index)) 62 { 63 (void) ksp, (void) headers, (void) data, (void) addr; 64 } 65