1 // SPDX-License-Identifier: CDDL-1.0
2 /*
3 * This file and its contents are supplied under the terms of the
4 * Common Development and Distribution License ("CDDL"), version 1.0.
5 * You may only use this file in accordance with the terms of version
6 * 1.0 of the CDDL.
7 *
8 * A full copy of the text of the CDDL should have accompanied this
9 * source. A copy of the CDDL is also available via the Internet at
10 * https://opensource.org/license/CDDL-1.0.
11 */
12 /*
13 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
14 * Copyright (c) 2012, 2018 by Delphix. All rights reserved.
15 * Copyright (c) 2016 Actifio, Inc. All rights reserved.
16 * Copyright (c) 2025, Klara, Inc.
17 */
18
19 #include <sys/kstat.h>
20
21 /*
22 * =========================================================================
23 * kstats
24 * =========================================================================
25 */
26 kstat_t *
kstat_create(const char * module,int instance,const char * name,const char * class,uchar_t type,ulong_t ndata,uchar_t ks_flag)27 kstat_create(const char *module, int instance, const char *name,
28 const char *class, uchar_t type, ulong_t ndata, uchar_t ks_flag)
29 {
30 (void) module, (void) instance, (void) name, (void) class, (void) type,
31 (void) ndata, (void) ks_flag;
32 return (NULL);
33 }
34
35 void
kstat_install(kstat_t * ksp)36 kstat_install(kstat_t *ksp)
37 {
38 (void) ksp;
39 }
40
41 void
kstat_delete(kstat_t * ksp)42 kstat_delete(kstat_t *ksp)
43 {
44 (void) ksp;
45 }
46
47 void
kstat_set_raw_ops(kstat_t * ksp,int (* headers)(char * buf,size_t size),int (* data)(char * buf,size_t size,void * data),void * (* addr)(kstat_t * ksp,off_t index))48 kstat_set_raw_ops(kstat_t *ksp,
49 int (*headers)(char *buf, size_t size),
50 int (*data)(char *buf, size_t size, void *data),
51 void *(*addr)(kstat_t *ksp, off_t index))
52 {
53 (void) ksp, (void) headers, (void) data, (void) addr;
54 }
55