xref: /illumos-gate/usr/src/uts/common/klm/mapfile-mod (revision bbaa8b60)
1*bbaa8b60SDan Kruchinin#
2*bbaa8b60SDan Kruchinin# This file and its contents are supplied under the terms of the
3*bbaa8b60SDan Kruchinin# Common Development and Distribution License ("CDDL"), version 1.0.
4*bbaa8b60SDan Kruchinin# You may only use this file in accordance with the terms version
5*bbaa8b60SDan Kruchinin# 1.0 of the CDDL.
6*bbaa8b60SDan Kruchinin#
7*bbaa8b60SDan Kruchinin# A full copy of the text of the CDDL should have accompanied this
8*bbaa8b60SDan Kruchinin# source.  A copy is of the CDDL is also available via the Internet
9*bbaa8b60SDan Kruchinin# at http://www.illumos.org/license/CDDL.
10*bbaa8b60SDan Kruchinin#
11*bbaa8b60SDan Kruchinin
12*bbaa8b60SDan Kruchinin#
13*bbaa8b60SDan Kruchinin# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
14*bbaa8b60SDan Kruchinin#
15*bbaa8b60SDan Kruchinin
16*bbaa8b60SDan Kruchinin
17*bbaa8b60SDan Kruchinin$mapfile_version 2
18*bbaa8b60SDan Kruchinin
19*bbaa8b60SDan KruchininSYMBOL_SCOPE {
20*bbaa8b60SDan Kruchinin	global:
21*bbaa8b60SDan Kruchinin# loadable module linkage
22*bbaa8b60SDan Kruchinin		_fini;
23*bbaa8b60SDan Kruchinin		_info;
24*bbaa8b60SDan Kruchinin		_init;
25*bbaa8b60SDan Kruchinin# These are all the symbols referenced in ml/modstubs.s
26*bbaa8b60SDan Kruchinin# If we want to remain a drop-in replacment for the old
27*bbaa8b60SDan Kruchinin# (closed source) klm, we need to define all of these.
28*bbaa8b60SDan Kruchinin		lm_alloc_sysidt;
29*bbaa8b60SDan Kruchinin		lm_cprresume;
30*bbaa8b60SDan Kruchinin		lm_cprsuspend;
31*bbaa8b60SDan Kruchinin		lm_free_config;
32*bbaa8b60SDan Kruchinin		lm_free_sysidt;
33*bbaa8b60SDan Kruchinin		lm_get_sysid;
34*bbaa8b60SDan Kruchinin		lm_global_nlmid;
35*bbaa8b60SDan Kruchinin		lm_has_sleep;
36*bbaa8b60SDan Kruchinin		lm_rel_sysid;
37*bbaa8b60SDan Kruchinin		lm_remove_file_locks;
38*bbaa8b60SDan Kruchinin		lm_safelock;
39*bbaa8b60SDan Kruchinin		lm_safemap;
40*bbaa8b60SDan Kruchinin		lm_set_nlmid_flk;
41*bbaa8b60SDan Kruchinin		lm_shutdown;
42*bbaa8b60SDan Kruchinin		lm_svc;
43*bbaa8b60SDan Kruchinin		lm_sysidt;
44*bbaa8b60SDan Kruchinin		lm_unexport;
45*bbaa8b60SDan Kruchinin		lm_vp_active;
46*bbaa8b60SDan Kruchinin# The following three functions are not mentioned in modstubs.s
47*bbaa8b60SDan Kruchinin# files, because they are not an entry points to KLM. They
48*bbaa8b60SDan Kruchinin# are called from klmops only.
49*bbaa8b60SDan Kruchinin		nlm_frlock;
50*bbaa8b60SDan Kruchinin		nlm_register_lock_locally;
51*bbaa8b60SDan Kruchinin		nlm_shrlock;
52*bbaa8b60SDan Kruchinin
53*bbaa8b60SDan Kruchinin	local:
54*bbaa8b60SDan Kruchinin		*;
55*bbaa8b60SDan Kruchinin};