Path: blob/main/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.h
39562 views
/*1* CDDL HEADER START2*3* The contents of this file are subject to the terms of the4* Common Development and Distribution License, Version 1.0 only5* (the "License"). You may not use this file except in compliance6* with the License.7*8* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE9* or http://www.opensolaris.org/os/licensing.10* See the License for the specific language governing permissions11* and limitations under the License.12*13* When distributing Covered Code, include this CDDL HEADER in each14* file and include the License file at usr/src/OPENSOLARIS.LICENSE.15* If applicable, add the following below this CDDL HEADER, with the16* fields enclosed by brackets "[]" replaced with your own identifying17* information: Portions Copyright [yyyy] [name of copyright owner]18*19* CDDL HEADER END20*/21/*22* Copyright 2004 Sun Microsystems, Inc. All rights reserved.23* Use is subject to license terms.24*/25/*26* Copyright (c) 2013, Joyent, Inc. All rights reserved.27*/2829#ifndef _DT_MODULE_H30#define _DT_MODULE_H3132#include <dt_impl.h>3334#ifdef __cplusplus35extern "C" {36#endif3738extern dt_module_t *dt_module_create(dtrace_hdl_t *, const char *);39extern int dt_module_load(dtrace_hdl_t *, dt_module_t *);40extern void dt_module_unload(dtrace_hdl_t *, dt_module_t *);41extern void dt_module_destroy(dtrace_hdl_t *, dt_module_t *);4243extern dt_module_t *dt_module_lookup_by_name(dtrace_hdl_t *, const char *);44extern dt_module_t *dt_module_lookup_by_ctf(dtrace_hdl_t *, ctf_file_t *);4546#ifdef __FreeBSD__47extern dt_kmodule_t *dt_kmodule_lookup(dtrace_hdl_t *, const char *);48#endif4950extern int dt_module_hasctf(dtrace_hdl_t *, dt_module_t *);51extern ctf_file_t *dt_module_getctf(dtrace_hdl_t *, dt_module_t *);52extern dt_ident_t *dt_module_extern(dtrace_hdl_t *, dt_module_t *,53const char *, const dtrace_typeinfo_t *);5455extern const char *dt_module_modelname(dt_module_t *);56extern int dt_module_getlibid(dtrace_hdl_t *, dt_module_t *,57const ctf_file_t *);58extern ctf_file_t *dt_module_getctflib(dtrace_hdl_t *, dt_module_t *,59const char *);6061#ifdef __cplusplus62}63#endif6465#endif /* _DT_MODULE_H */666768