4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2015, Joyent, Inc. All rights reserved.
25 * Copyright 2016 Nexenta Systems, Inc.
26 */
27
28 #if !defined(lint)
29 #include "assym.h"
30 #endif /* !lint */
31
32 #include <sys/asm_linkage.h>
33
34 #if defined(lint)
35
36 char stubs_base[1], stubs_end[1];
37
38 #else /* lint */
39
40 /*
41 * WARNING: there is no check for forgetting to write END_MODULE,
42 * and if you do, the kernel will most likely crash. Be careful
43 *
44 * This file assumes that all of the contributions to the data segment
45 * will be contiguous in the output file, even though they are separated
405 WSTUB(ipsecah, sadb_insertassoc, nomod_zero);
406 WSTUB(ipsecah, ipsecah_in_assocfailure, nomod_zero);
407 WSTUB(ipsecah, sadb_set_lpkt, nomod_zero);
408 WSTUB(ipsecah, ipsecah_icmp_error, nomod_zero);
409 END_MODULE(ipsecah);
410 #endif
411
412 #ifndef IPSECESP_MODULE
413 MODULE(ipsecesp,drv);
414 WSTUB(ipsecesp, ipsecesp_fill_defs, nomod_zero);
415 WSTUB(ipsecesp, ipsecesp_algs_changed, nomod_zero);
416 WSTUB(ipsecesp, ipsecesp_in_assocfailure, nomod_zero);
417 WSTUB(ipsecesp, ipsecesp_init_funcs, nomod_zero);
418 WSTUB(ipsecesp, ipsecesp_icmp_error, nomod_zero);
419 WSTUB(ipsecesp, ipsecesp_send_keepalive, nomod_zero);
420 END_MODULE(ipsecesp);
421 #endif
422
423 #ifndef KEYSOCK_MODULE
424 MODULE(keysock,drv);
425 WSTUB(keysock, keysock_plumb_ipsec, nomod_zero);
426 WSTUB(keysock, keysock_extended_reg, nomod_zero);
427 WSTUB(keysock, keysock_next_seq, nomod_zero);
428 END_MODULE(keysock);
429 #endif
430
431 #ifndef SPDSOCK_MODULE
432 MODULE(spdsock,drv);
433 WSTUB(spdsock, spdsock_update_pending_algs, nomod_zero);
434 END_MODULE(spdsock);
435 #endif
436
437 /*
438 * Stubs for nfs common code.
439 * XXX nfs_getvnodeops should go away with removal of kludge in vnode.c
440 */
441 #ifndef NFS_MODULE
442 MODULE(nfs,fs);
443 WSTUB(nfs, nfs_getvnodeops, nomod_zero);
444 WSTUB(nfs, nfs_perror, nomod_zero);
|
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2016 Nexenta Systems, Inc.
25 * Copyright (c) 2017, Joyent, Inc. All rights reserved.
26 */
27
28 #if !defined(lint)
29 #include "assym.h"
30 #endif /* !lint */
31
32 #include <sys/asm_linkage.h>
33
34 #if defined(lint)
35
36 char stubs_base[1], stubs_end[1];
37
38 #else /* lint */
39
40 /*
41 * WARNING: there is no check for forgetting to write END_MODULE,
42 * and if you do, the kernel will most likely crash. Be careful
43 *
44 * This file assumes that all of the contributions to the data segment
45 * will be contiguous in the output file, even though they are separated
405 WSTUB(ipsecah, sadb_insertassoc, nomod_zero);
406 WSTUB(ipsecah, ipsecah_in_assocfailure, nomod_zero);
407 WSTUB(ipsecah, sadb_set_lpkt, nomod_zero);
408 WSTUB(ipsecah, ipsecah_icmp_error, nomod_zero);
409 END_MODULE(ipsecah);
410 #endif
411
412 #ifndef IPSECESP_MODULE
413 MODULE(ipsecesp,drv);
414 WSTUB(ipsecesp, ipsecesp_fill_defs, nomod_zero);
415 WSTUB(ipsecesp, ipsecesp_algs_changed, nomod_zero);
416 WSTUB(ipsecesp, ipsecesp_in_assocfailure, nomod_zero);
417 WSTUB(ipsecesp, ipsecesp_init_funcs, nomod_zero);
418 WSTUB(ipsecesp, ipsecesp_icmp_error, nomod_zero);
419 WSTUB(ipsecesp, ipsecesp_send_keepalive, nomod_zero);
420 END_MODULE(ipsecesp);
421 #endif
422
423 #ifndef KEYSOCK_MODULE
424 MODULE(keysock,drv);
425 WSTUB(keysock, keysock_spdsock_wput_iocdata, nomod_void);
426 WSTUB(keysock, keysock_plumb_ipsec, nomod_zero);
427 WSTUB(keysock, keysock_extended_reg, nomod_zero);
428 WSTUB(keysock, keysock_next_seq, nomod_zero);
429 END_MODULE(keysock);
430 #endif
431
432 #ifndef SPDSOCK_MODULE
433 MODULE(spdsock,drv);
434 WSTUB(spdsock, spdsock_update_pending_algs, nomod_zero);
435 END_MODULE(spdsock);
436 #endif
437
438 /*
439 * Stubs for nfs common code.
440 * XXX nfs_getvnodeops should go away with removal of kludge in vnode.c
441 */
442 #ifndef NFS_MODULE
443 MODULE(nfs,fs);
444 WSTUB(nfs, nfs_getvnodeops, nomod_zero);
445 WSTUB(nfs, nfs_perror, nomod_zero);
|