1/* 2 * CDDL HEADER START 3 * 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) 1992, 2010, Oracle and/or its affiliates. All rights reserved. 24 */ 25 26#include <sys/asm_linkage.h> 27 28#if defined(__lint) 29 30char stubs_base[1], stubs_end[1]; 31 32#else /* __lint */ 33 34#include "assym.h" 35 36/* 37 * !!!!!!!! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! !!!!!!!! 38 * 39 * For functions which are either STUBs or WSTUBs the actual function 40 * need to be called using 'call' instruction because of preamble and 41 * postamble (i.e mod_hold_stub and mod_release_stub) around the 42 * function call. Due to this we need to copy arguments for the 43 * real function. On Intel we can't tell how many arguments are there 44 * on the stack so we have to either copy everything between esp and 45 * ebp or copy only a fixed number (MAXNARG - defined here) for 46 * all the stub functions. Currently we are using MAXNARG (it is a kludge 47 * but worth it?!). 48 * 49 * NOTE: Use NO_UNLOAD_STUBs if the module is NOT unloadable once it is 50 * loaded. 51 */ 52#define MAXNARG 10 53 54/* 55 * WARNING: there is no check for forgetting to write END_MODULE, 56 * and if you do, the kernel will most likely crash. Be careful 57 * 58 * This file assumes that all of the contributions to the data segment 59 * will be contiguous in the output file, even though they are separated 60 * by pieces of text. This is safe for all assemblers I know of now... 61 */ 62 63/* 64 * This file uses ansi preprocessor features: 65 * 66 * 1. #define mac(a) extra_ ## a --> mac(x) expands to extra_a 67 * The old version of this is 68 * #define mac(a) extra_/.*.*./a 69 * but this fails if the argument has spaces "mac ( x )" 70 * (Ignore the dots above, I had to put them in to keep this a comment.) 71 * 72 * 2. #define mac(a) #a --> mac(x) expands to "x" 73 * The old version is 74 * #define mac(a) "a" 75 * 76 * For some reason, the 5.0 preprocessor isn't happy with the above usage. 77 * For now, we're not using these ansi features. 78 * 79 * The reason is that "the 5.0 ANSI preprocessor" is built into the compiler 80 * and is a tokenizing preprocessor. This means, when confronted by something 81 * other than C token generation rules, strange things occur. In this case, 82 * when confronted by an assembly file, it would turn the token ".globl" into 83 * two tokens "." and "globl". For this reason, the traditional, non-ANSI 84 * preprocessor is used on assembly files. 85 * 86 * It would be desirable to have a non-tokenizing cpp (accp?) to use for this. 87 */ 88 89/* 90 * This file contains the stubs routines for modules which can be autoloaded. 91 */ 92 93#if defined(__amd64) 94 95/* 96 * See the 'struct mod_modinfo' definition to see what this declaration 97 * is trying to achieve here. 98 */ 99#define MODULE(module,namespace) \ 100 .data; \ 101module/**/_modname: \ 102 .string "namespace/module"; \ 103 SET_SIZE(module/**/_modname); \ 104 .align CPTRSIZE; \ 105 .globl module/**/_modinfo; \ 106 .type module/**/_modinfo, @object; \ 107module/**/_modinfo: \ 108 .quad module/**/_modname; \ 109 .quad 0 /* storage for modctl pointer */ 110 111 /* then mod_stub_info structures follow until a mods_func_adr is 0 */ 112 113/* this puts a 0 where the next mods_func_adr would be */ 114#define END_MODULE(module) \ 115 .data; \ 116 .align CPTRSIZE; \ 117 .quad 0; \ 118 SET_SIZE(module/**/_modinfo) 119 120/* 121 * The data section in the stub_common macro is the 122 * mod_stub_info structure for the stub function 123 */ 124 125#define STUB_COMMON(module, fcnname, install_fcn, retfcn, weak) \ 126 ENTRY(fcnname); \ 127 leaq fcnname/**/_info(%rip), %rax; \ 128 cmpl $0, MODS_FLAG(%rax); /* weak? */ \ 129 je stubs_common_code; /* not weak */ \ 130 testb $MODS_INSTALLED, MODS_FLAG(%rax); /* installed? */ \ 131 jne stubs_common_code; /* yes, do the mod_hold */ \ 132 jmp *MODS_RETFCN(%rax); /* no, jump to retfcn */ \ 133 SET_SIZE(fcnname); \ 134 .data; \ 135 .align CPTRSIZE; \ 136 .type fcnname/**/_info, @object; \ 137fcnname/**/_info: \ 138 .quad install_fcn; /* 0 */ \ 139 .quad module/**/_modinfo; /* 0x8 */ \ 140 .quad fcnname; /* 0x10 */ \ 141 .quad retfcn; /* 0x18 */ \ 142 .long weak; /* 0x20 */ \ 143 SET_SIZE(fcnname/**/_info) 144 145#define STUB_UNLOADABLE(module, fcnname, install_fcn, retfcn, weak) \ 146 ENTRY(fcnname); \ 147 leaq fcnname/**/_info(%rip), %rax; \ 148 testb $MODS_INSTALLED, MODS_FLAG(%rax); /* installed? */ \ 149 je 5f; /* no */ \ 150 jmp *(%rax); /* yes, jump to install_fcn */ \ 1515: testb $MODS_WEAK, MODS_FLAG(%rax); /* weak? */ \ 152 je stubs_common_code; /* no, do mod load */ \ 153 jmp *MODS_RETFCN(%rax); /* yes, jump to retfcn */ \ 154 SET_SIZE(fcnname); \ 155 .data; \ 156 .align CPTRSIZE; \ 157 .type fcnname/**/_info, @object; \ 158fcnname/**/_info: \ 159 .quad install_fcn; /* 0 */ \ 160 .quad module/**/_modinfo; /* 0x8 */ \ 161 .quad fcnname; /* 0x10 */ \ 162 .quad retfcn; /* 0x18 */ \ 163 .long weak; /* 0x20 */ \ 164 SET_SIZE(fcnname/**/_info) 165 166/* 167 * We branch here with the fcnname_info pointer in %rax 168 */ 169 ENTRY_NP(stubs_common_code) 170 .globl mod_hold_stub 171 .globl mod_release_stub 172 pushq %rbp 173 movq %rsp, %rbp 174 subq $0x10, %rsp 175 movq %r15, (%rsp) /* (caller saved) */ 176 movq %rax, %r15 /* stash the fcnname_info pointer */ 177 /* 178 * save incoming register arguments 179 */ 180 pushq %rdi 181 pushq %rsi 182 pushq %rdx 183 pushq %rcx 184 pushq %r8 185 pushq %r9 186 /* (next 4 args, if any, are already on the stack above %rbp) */ 187 movq %r15, %rdi 188 call mod_hold_stub /* mod_hold_stub(mod_stub_info *) */ 189 cmpl $-1, %eax /* error? */ 190 jne .L1 191 movq 0x18(%r15), %rax 192 call *%rax 193 addq $0x30, %rsp 194 jmp .L2 195.L1: 196 /* 197 * copy MAXNARG == 10 incoming arguments 198 */ 199 popq %r9 200 popq %r8 201 popq %rcx 202 popq %rdx 203 popq %rsi 204 popq %rdi 205 /* 206 * stack: 207 * arg9 0x38(%rsp) 208 * arg8 0x30(%rsp) 209 * arg7 0x28(%rsp) 210 * arg6 0x20(%rsp) 211 * saved %rip 0x18(%rsp) 212 * saved %rbp 0x10(%rsp) 213 * <pad> 0x8(%rsp) 214 * saved %r15 0x0(%rsp) 215 */ 216 movl $MAXNARG - 6 + 3, %r11d 217 pushq (%rsp, %r11, 8) 218 pushq (%rsp, %r11, 8) 219 pushq (%rsp, %r11, 8) 220 pushq (%rsp, %r11, 8) 221 call *(%r15) /* call the stub fn(arg, ..) */ 222 addq $0x20, %rsp /* pop off last 4 args */ 223 pushq %rax /* save any return values */ 224 pushq %rdx 225 movq %r15, %rdi 226 call mod_release_stub /* release hold on module */ 227 popq %rdx /* restore return values */ 228 popq %rax 229.L2: 230 popq %r15 231 leave 232 ret 233 SET_SIZE(stubs_common_code) 234 235#elif defined(__i386) 236 237/* 238 * See the 'struct mod_modinfo' definition to see what this declaration 239 * is trying to achieve here. 240 */ 241#define MODULE(module,namespace) \ 242 .data; \ 243module/**/_modname: \ 244 .string "namespace/module"; \ 245 SET_SIZE(module/**/_modname); \ 246 .align CPTRSIZE; \ 247 .globl module/**/_modinfo; \ 248 .type module/**/_modinfo, @object; \ 249module/**/_modinfo: \ 250 .long module/**/_modname; \ 251 .long 0 /* storage for modctl pointer */ 252 253 /* then mod_stub_info structures follow until a mods_func_adr is 0 */ 254 255/* this puts a 0 where the next mods_func_adr would be */ 256#define END_MODULE(module) \ 257 .data; \ 258 .align CPTRSIZE; \ 259 .long 0; \ 260 SET_SIZE(module/**/_modinfo) 261 262/* 263 * The data section in the stub_common macro is the 264 * mod_stub_info structure for the stub function 265 */ 266 267/* 268 * The flag MODS_INSTALLED is stored in the stub data and is used to 269 * indicate if a module is installed and initialized. This flag is used 270 * instead of the mod_stub_info->mods_modinfo->mod_installed flag 271 * to minimize the number of pointer de-references for each function 272 * call (and also to avoid possible TLB misses which could be induced 273 * by dereferencing these pointers.) 274 */ 275 276#define STUB_COMMON(module, fcnname, install_fcn, retfcn, weak) \ 277 ENTRY(fcnname); \ 278 leal fcnname/**/_info, %eax; \ 279 cmpl $0, MODS_FLAG(%eax); /* weak? */ \ 280 je stubs_common_code; /* not weak */ \ 281 testb $MODS_INSTALLED, MODS_FLAG(%eax); /* installed? */ \ 282 jne stubs_common_code; /* yes, do the mod_hold */ \ 283 jmp *MODS_RETFCN(%eax); /* no, just jump to retfcn */ \ 284 SET_SIZE(fcnname); \ 285 .data; \ 286 .align CPTRSIZE; \ 287 .type fcnname/**/_info, @object; \ 288fcnname/**/_info: \ 289 .long install_fcn; \ 290 .long module/**/_modinfo; \ 291 .long fcnname; \ 292 .long retfcn; \ 293 .long weak; \ 294 SET_SIZE(fcnname/**/_info) 295 296#define STUB_UNLOADABLE(module, fcnname, install_fcn, retfcn, weak) \ 297 ENTRY(fcnname); \ 298 leal fcnname/**/_info, %eax; \ 299 testb $MODS_INSTALLED, MODS_FLAG(%eax); /* installed? */ \ 300 je 5f; /* no */ \ 301 jmp *(%eax); /* yes, just jump to install_fcn */ \ 3025: testb $MODS_WEAK, MODS_FLAG(%eax); /* weak? */ \ 303 je stubs_common_code; /* no, do mod load */ \ 304 jmp *MODS_RETFCN(%eax); /* yes, just jump to retfcn */ \ 305 SET_SIZE(fcnname); \ 306 .data; \ 307 .align CPTRSIZE; \ 308 .type fcnname/**/_info, @object; \ 309fcnname/**/_info: \ 310 .long install_fcn; /* 0 */ \ 311 .long module/**/_modinfo; /* 0x4 */ \ 312 .long fcnname; /* 0x8 */ \ 313 .long retfcn; /* 0xc */ \ 314 .long weak; /* 0x10 */ \ 315 SET_SIZE(fcnname/**/_info) 316 317/* 318 * We branch here with the fcnname_info pointer in %eax 319 */ 320 ENTRY_NP(stubs_common_code) 321 .globl mod_hold_stub 322 .globl mod_release_stub 323 pushl %esi 324 movl %eax, %esi / save the info pointer 325 pushl %eax 326 call mod_hold_stub / mod_hold_stub(mod_stub_info *) 327 popl %ecx 328 cmpl $-1, %eax / error? 329 jne .L1 330 movl MODS_RETFCN(%esi), %eax 331 call *%eax 332 popl %esi / yes, return error (panic?) 333 ret 334.L1: 335 movl $MAXNARG+1, %ecx 336 / copy incoming arguments 337 pushl (%esp, %ecx, 4) / push MAXNARG times 338 pushl (%esp, %ecx, 4) 339 pushl (%esp, %ecx, 4) 340 pushl (%esp, %ecx, 4) 341 pushl (%esp, %ecx, 4) 342 pushl (%esp, %ecx, 4) 343 pushl (%esp, %ecx, 4) 344 pushl (%esp, %ecx, 4) 345 pushl (%esp, %ecx, 4) 346 pushl (%esp, %ecx, 4) 347 call *(%esi) / call the stub function(arg1,arg2, ...) 348 add $_MUL(MAXNARG, 4), %esp / pop off MAXNARG arguments 349 pushl %eax / save any return values from the stub 350 pushl %edx 351 pushl %esi 352 call mod_release_stub / release hold on module 353 addl $4, %esp 354 popl %edx / restore return values 355 popl %eax 356.L2: 357 popl %esi 358 ret 359 SET_SIZE(stubs_common_code) 360 361#endif /* __i386 */ 362 363#define STUB(module, fcnname, retfcn) \ 364 STUB_COMMON(module, fcnname, mod_hold_stub, retfcn, 0) 365 366/* 367 * "weak stub", don't load on account of this call 368 */ 369#define WSTUB(module, fcnname, retfcn) \ 370 STUB_COMMON(module, fcnname, retfcn, retfcn, MODS_WEAK) 371 372/* 373 * "non-unloadable stub", don't bother 'holding' module if it's already loaded 374 * since the module cannot be unloaded. 375 * 376 * User *MUST* guarantee the module is not unloadable (no _fini routine). 377 */ 378#define NO_UNLOAD_STUB(module, fcnname, retfcn) \ 379 STUB_UNLOADABLE(module, fcnname, retfcn, retfcn, MODS_NOUNLOAD) 380 381/* 382 * "weak stub" for non-unloadable module, don't load on account of this call 383 */ 384#define NO_UNLOAD_WSTUB(module, fcnname, retfcn) \ 385 STUB_UNLOADABLE(module, fcnname, retfcn, retfcn, MODS_NOUNLOAD|MODS_WEAK) 386 387/* 388 * this is just a marker for the beginning area of text that contains stubs 389 */ 390 ENTRY_NP(stubs_base) 391 nop 392 393/* 394 * WARNING WARNING WARNING!!!!!! 395 * 396 * On the MODULE macro you MUST NOT use any spaces!!! They are 397 * significant to the preprocessor. With ansi c there is a way around this 398 * but for some reason (yet to be investigated) ansi didn't work for other 399 * reasons! 400 * 401 * When zero is used as the return function, the system will call 402 * panic if the stub can't be resolved. 403 */ 404 405/* 406 * Stubs for devfs. A non-unloadable module. 407 */ 408 409#ifndef DEVFS_MODULE 410 MODULE(devfs,fs); 411 NO_UNLOAD_STUB(devfs, devfs_clean, nomod_minus_one); 412 NO_UNLOAD_STUB(devfs, devfs_lookupname, nomod_minus_one); 413 NO_UNLOAD_STUB(devfs, devfs_walk, nomod_minus_one); 414 NO_UNLOAD_STUB(devfs, devfs_devpolicy, nomod_minus_one); 415 NO_UNLOAD_STUB(devfs, devfs_reset_perm, nomod_minus_one); 416 NO_UNLOAD_STUB(devfs, devfs_remdrv_cleanup, nomod_minus_one); 417 END_MODULE(devfs); 418#endif 419 420#ifndef DEV_MODULE 421 MODULE(dev,fs); 422 NO_UNLOAD_STUB(dev, sdev_modctl_readdir, nomod_minus_one); 423 NO_UNLOAD_STUB(dev, sdev_modctl_readdir_free, nomod_minus_one); 424 NO_UNLOAD_STUB(dev, devname_filename_register, nomod_minus_one); 425 NO_UNLOAD_STUB(dev, sdev_modctl_devexists, nomod_minus_one); 426 NO_UNLOAD_STUB(dev, devname_profile_update, nomod_minus_one); 427 NO_UNLOAD_STUB(dev, sdev_devstate_change, nomod_minus_one); 428 NO_UNLOAD_STUB(dev, devvt_getvnodeops, nomod_minus_one); 429 NO_UNLOAD_STUB(dev, devpts_getvnodeops, nomod_zero); 430 END_MODULE(dev); 431#endif 432 433/* 434 * Stubs for specfs. A non-unloadable module. 435 */ 436 437#ifndef SPEC_MODULE 438 MODULE(specfs,fs); 439 NO_UNLOAD_STUB(specfs, common_specvp, nomod_zero); 440 NO_UNLOAD_STUB(specfs, makectty, nomod_zero); 441 NO_UNLOAD_STUB(specfs, makespecvp, nomod_zero); 442 NO_UNLOAD_STUB(specfs, smark, nomod_zero); 443 NO_UNLOAD_STUB(specfs, spec_segmap, nomod_einval); 444 NO_UNLOAD_STUB(specfs, specfind, nomod_zero); 445 NO_UNLOAD_STUB(specfs, specvp, nomod_zero); 446 NO_UNLOAD_STUB(specfs, devi_stillreferenced, nomod_zero); 447 NO_UNLOAD_STUB(specfs, spec_getvnodeops, nomod_zero); 448 NO_UNLOAD_STUB(specfs, spec_char_map, nomod_zero); 449 NO_UNLOAD_STUB(specfs, specvp_devfs, nomod_zero); 450 NO_UNLOAD_STUB(specfs, spec_assoc_vp_with_devi, nomod_void); 451 NO_UNLOAD_STUB(specfs, spec_hold_devi_by_vp, nomod_zero); 452 NO_UNLOAD_STUB(specfs, spec_snode_walk, nomod_void); 453 NO_UNLOAD_STUB(specfs, spec_devi_open_count, nomod_minus_one); 454 NO_UNLOAD_STUB(specfs, spec_is_clone, nomod_zero); 455 NO_UNLOAD_STUB(specfs, spec_is_selfclone, nomod_zero); 456 NO_UNLOAD_STUB(specfs, spec_fence_snode, nomod_minus_one); 457 NO_UNLOAD_STUB(specfs, spec_unfence_snode, nomod_minus_one); 458 END_MODULE(specfs); 459#endif 460 461 462/* 463 * Stubs for sockfs. A non-unloadable module. 464 */ 465#ifndef SOCK_MODULE 466 MODULE(sockfs,fs); 467 NO_UNLOAD_STUB(sockfs, so_socket, nomod_zero); 468 NO_UNLOAD_STUB(sockfs, so_socketpair, nomod_zero); 469 NO_UNLOAD_STUB(sockfs, bind, nomod_zero); 470 NO_UNLOAD_STUB(sockfs, listen, nomod_zero); 471 NO_UNLOAD_STUB(sockfs, accept, nomod_zero); 472 NO_UNLOAD_STUB(sockfs, connect, nomod_zero); 473 NO_UNLOAD_STUB(sockfs, shutdown, nomod_zero); 474 NO_UNLOAD_STUB(sockfs, recv, nomod_zero); 475 NO_UNLOAD_STUB(sockfs, recvfrom, nomod_zero); 476 NO_UNLOAD_STUB(sockfs, recvmsg, nomod_zero); 477 NO_UNLOAD_STUB(sockfs, send, nomod_zero); 478 NO_UNLOAD_STUB(sockfs, sendmsg, nomod_zero); 479 NO_UNLOAD_STUB(sockfs, sendto, nomod_zero); 480#ifdef _SYSCALL32_IMPL 481 NO_UNLOAD_STUB(sockfs, recv32, nomod_zero); 482 NO_UNLOAD_STUB(sockfs, recvfrom32, nomod_zero); 483 NO_UNLOAD_STUB(sockfs, send32, nomod_zero); 484 NO_UNLOAD_STUB(sockfs, sendto32, nomod_zero); 485#endif /* _SYSCALL32_IMPL */ 486 NO_UNLOAD_STUB(sockfs, getpeername, nomod_zero); 487 NO_UNLOAD_STUB(sockfs, getsockname, nomod_zero); 488 NO_UNLOAD_STUB(sockfs, getsockopt, nomod_zero); 489 NO_UNLOAD_STUB(sockfs, setsockopt, nomod_zero); 490 NO_UNLOAD_STUB(sockfs, sockconfig, nomod_zero); 491 NO_UNLOAD_STUB(sockfs, sock_getmsg, nomod_zero); 492 NO_UNLOAD_STUB(sockfs, sock_putmsg, nomod_zero); 493 NO_UNLOAD_STUB(sockfs, sosendfile64, nomod_zero); 494 NO_UNLOAD_STUB(sockfs, snf_segmap, nomod_einval); 495 NO_UNLOAD_STUB(sockfs, sock_getfasync, nomod_zero); 496 NO_UNLOAD_STUB(sockfs, nl7c_sendfilev, nomod_zero); 497 NO_UNLOAD_STUB(sockfs, sotpi_sototpi, nomod_zero); 498 NO_UNLOAD_STUB(sockfs, socket_sendmblk, nomod_zero); 499 NO_UNLOAD_STUB(sockfs, socket_setsockopt, nomod_zero); 500 END_MODULE(sockfs); 501#endif 502 503/* 504 * IPsec stubs. 505 */ 506 507#ifndef IPSECAH_MODULE 508 MODULE(ipsecah,drv); 509 WSTUB(ipsecah, ipsec_construct_inverse_acquire, nomod_zero); 510 WSTUB(ipsecah, sadb_acquire, nomod_zero); 511 WSTUB(ipsecah, ipsecah_algs_changed, nomod_zero); 512 WSTUB(ipsecah, sadb_alg_update, nomod_zero); 513 WSTUB(ipsecah, sadb_unlinkassoc, nomod_zero); 514 WSTUB(ipsecah, sadb_insertassoc, nomod_zero); 515 WSTUB(ipsecah, ipsecah_in_assocfailure, nomod_zero); 516 WSTUB(ipsecah, sadb_set_lpkt, nomod_zero); 517 WSTUB(ipsecah, ipsecah_icmp_error, nomod_zero); 518 END_MODULE(ipsecah); 519#endif 520 521#ifndef IPSECESP_MODULE 522 MODULE(ipsecesp,drv); 523 WSTUB(ipsecesp, ipsecesp_fill_defs, nomod_zero); 524 WSTUB(ipsecesp, ipsecesp_algs_changed, nomod_zero); 525 WSTUB(ipsecesp, ipsecesp_in_assocfailure, nomod_zero); 526 WSTUB(ipsecesp, ipsecesp_init_funcs, nomod_zero); 527 WSTUB(ipsecesp, ipsecesp_icmp_error, nomod_zero); 528 WSTUB(ipsecesp, ipsecesp_send_keepalive, nomod_zero); 529 END_MODULE(ipsecesp); 530#endif 531 532#ifndef KEYSOCK_MODULE 533 MODULE(keysock, drv); 534 WSTUB(keysock, keysock_plumb_ipsec, nomod_zero); 535 WSTUB(keysock, keysock_extended_reg, nomod_zero); 536 WSTUB(keysock, keysock_next_seq, nomod_zero); 537 END_MODULE(keysock); 538#endif 539 540#ifndef SPDSOCK_MODULE 541 MODULE(spdsock,drv); 542 WSTUB(spdsock, spdsock_update_pending_algs, nomod_zero); 543 END_MODULE(spdsock); 544#endif 545 546/* 547 * Stubs for nfs common code. 548 * XXX nfs_getvnodeops should go away with removal of kludge in vnode.c 549 */ 550#ifndef NFS_MODULE 551 MODULE(nfs,fs); 552 WSTUB(nfs, nfs_getvnodeops, nomod_zero); 553 WSTUB(nfs, nfs_perror, nomod_zero); 554 WSTUB(nfs, nfs_cmn_err, nomod_zero); 555 WSTUB(nfs, clcleanup_zone, nomod_zero); 556 WSTUB(nfs, clcleanup4_zone, nomod_zero); 557 END_MODULE(nfs); 558#endif 559 560 561/* 562 * Stubs for nfs_dlboot (diskless booting). 563 */ 564#ifndef NFS_DLBOOT_MODULE 565 MODULE(nfs_dlboot,misc); 566 STUB(nfs_dlboot, mount_root, nomod_minus_one); 567 STUB(nfs_dlboot, dhcpinit, nomod_minus_one); 568 END_MODULE(nfs_dlboot); 569#endif 570 571/* 572 * Stubs for nfs server-only code. 573 */ 574#ifndef NFSSRV_MODULE 575 MODULE(nfssrv,misc); 576 STUB(nfssrv, lm_nfs3_fhtovp, nomod_minus_one); 577 STUB(nfssrv, lm_fhtovp, nomod_minus_one); 578 STUB(nfssrv, exportfs, nomod_minus_one); 579 STUB(nfssrv, nfs_getfh, nomod_minus_one); 580 STUB(nfssrv, nfsl_flush, nomod_minus_one); 581 STUB(nfssrv, rfs4_check_delegated, nomod_zero); 582 STUB(nfssrv, mountd_args, nomod_minus_one); 583 NO_UNLOAD_STUB(nfssrv, rdma_start, nomod_zero); 584 NO_UNLOAD_STUB(nfssrv, nfs_svc, nomod_zero); 585 END_MODULE(nfssrv); 586#endif 587 588/* 589 * Stubs for kernel lock manager. 590 */ 591#ifndef KLM_MODULE 592 MODULE(klmmod,misc); 593 NO_UNLOAD_STUB(klmmod, lm_svc, nomod_zero); 594 NO_UNLOAD_STUB(klmmod, lm_shutdown, nomod_zero); 595 NO_UNLOAD_STUB(klmmod, lm_unexport, nomod_zero); 596 NO_UNLOAD_STUB(klmmod, lm_cprresume, nomod_zero); 597 NO_UNLOAD_STUB(klmmod, lm_cprsuspend, nomod_zero); 598 NO_UNLOAD_STUB(klmmod, lm_safelock, nomod_zero); 599 NO_UNLOAD_STUB(klmmod, lm_safemap, nomod_zero); 600 NO_UNLOAD_STUB(klmmod, lm_has_sleep, nomod_zero); 601 NO_UNLOAD_STUB(klmmod, lm_free_config, nomod_zero); 602 NO_UNLOAD_STUB(klmmod, lm_vp_active, nomod_zero); 603 NO_UNLOAD_STUB(klmmod, lm_get_sysid, nomod_zero); 604 NO_UNLOAD_STUB(klmmod, lm_rel_sysid, nomod_zero); 605 NO_UNLOAD_STUB(klmmod, lm_alloc_sysidt, nomod_minus_one); 606 NO_UNLOAD_STUB(klmmod, lm_free_sysidt, nomod_zero); 607 NO_UNLOAD_STUB(klmmod, lm_sysidt, nomod_minus_one); 608 END_MODULE(klmmod); 609#endif 610 611#ifndef KLMOPS_MODULE 612 MODULE(klmops,misc); 613 NO_UNLOAD_STUB(klmops, lm_frlock, nomod_zero); 614 NO_UNLOAD_STUB(klmops, lm4_frlock, nomod_zero); 615 NO_UNLOAD_STUB(klmops, lm_shrlock, nomod_zero); 616 NO_UNLOAD_STUB(klmops, lm4_shrlock, nomod_zero); 617 NO_UNLOAD_STUB(klmops, lm_nlm_dispatch, nomod_zero); 618 NO_UNLOAD_STUB(klmops, lm_nlm4_dispatch, nomod_zero); 619 NO_UNLOAD_STUB(klmops, lm_nlm_reclaim, nomod_zero); 620 NO_UNLOAD_STUB(klmops, lm_nlm4_reclaim, nomod_zero); 621 NO_UNLOAD_STUB(klmops, lm_register_lock_locally, nomod_zero); 622 END_MODULE(klmops); 623#endif 624 625/* 626 * Stubs for kernel TLI module 627 * XXX currently we never allow this to unload 628 */ 629#ifndef TLI_MODULE 630 MODULE(tlimod,misc); 631 NO_UNLOAD_STUB(tlimod, t_kopen, nomod_minus_one); 632 NO_UNLOAD_STUB(tlimod, t_kunbind, nomod_zero); 633 NO_UNLOAD_STUB(tlimod, t_kadvise, nomod_zero); 634 NO_UNLOAD_STUB(tlimod, t_krcvudata, nomod_zero); 635 NO_UNLOAD_STUB(tlimod, t_ksndudata, nomod_zero); 636 NO_UNLOAD_STUB(tlimod, t_kalloc, nomod_zero); 637 NO_UNLOAD_STUB(tlimod, t_kbind, nomod_zero); 638 NO_UNLOAD_STUB(tlimod, t_kclose, nomod_zero); 639 NO_UNLOAD_STUB(tlimod, t_kspoll, nomod_zero); 640 NO_UNLOAD_STUB(tlimod, t_kfree, nomod_zero); 641 END_MODULE(tlimod); 642#endif 643 644/* 645 * Stubs for kernel RPC module 646 * XXX currently we never allow this to unload 647 */ 648#ifndef RPC_MODULE 649 MODULE(rpcmod,strmod); 650 NO_UNLOAD_STUB(rpcmod, clnt_tli_kcreate, nomod_minus_one); 651 NO_UNLOAD_STUB(rpcmod, svc_tli_kcreate, nomod_minus_one); 652 NO_UNLOAD_STUB(rpcmod, bindresvport, nomod_minus_one); 653 NO_UNLOAD_STUB(rpcmod, rdma_register_mod, nomod_minus_one); 654 NO_UNLOAD_STUB(rpcmod, rdma_unregister_mod, nomod_minus_one); 655 NO_UNLOAD_STUB(rpcmod, svc_queuereq, nomod_minus_one); 656 NO_UNLOAD_STUB(rpcmod, clist_add, nomod_minus_one); 657 END_MODULE(rpcmod); 658#endif 659 660/* 661 * Stubs for des 662 */ 663#ifndef DES_MODULE 664 MODULE(des,misc); 665 STUB(des, cbc_crypt, nomod_zero); 666 STUB(des, ecb_crypt, nomod_zero); 667 STUB(des, _des_crypt, nomod_zero); 668 END_MODULE(des); 669#endif 670 671/* 672 * Stubs for procfs. A non-unloadable module. 673 */ 674#ifndef PROC_MODULE 675 MODULE(procfs,fs); 676 NO_UNLOAD_STUB(procfs, prfree, nomod_zero); 677 NO_UNLOAD_STUB(procfs, prexit, nomod_zero); 678 NO_UNLOAD_STUB(procfs, prlwpfree, nomod_zero); 679 NO_UNLOAD_STUB(procfs, prlwpexit, nomod_zero); 680 NO_UNLOAD_STUB(procfs, prinvalidate, nomod_zero); 681 NO_UNLOAD_STUB(procfs, prnsegs, nomod_zero); 682 NO_UNLOAD_STUB(procfs, prgetcred, nomod_zero); 683 NO_UNLOAD_STUB(procfs, prgetpriv, nomod_zero); 684 NO_UNLOAD_STUB(procfs, prgetprivsize, nomod_zero); 685 NO_UNLOAD_STUB(procfs, prgetstatus, nomod_zero); 686 NO_UNLOAD_STUB(procfs, prgetlwpstatus, nomod_zero); 687 NO_UNLOAD_STUB(procfs, prgetpsinfo, nomod_zero); 688 NO_UNLOAD_STUB(procfs, prgetlwpsinfo, nomod_zero); 689 NO_UNLOAD_STUB(procfs, oprgetstatus, nomod_zero); 690 NO_UNLOAD_STUB(procfs, oprgetpsinfo, nomod_zero); 691#ifdef _SYSCALL32_IMPL 692 NO_UNLOAD_STUB(procfs, prgetstatus32, nomod_zero); 693 NO_UNLOAD_STUB(procfs, prgetlwpstatus32, nomod_zero); 694 NO_UNLOAD_STUB(procfs, prgetpsinfo32, nomod_zero); 695 NO_UNLOAD_STUB(procfs, prgetlwpsinfo32, nomod_zero); 696 NO_UNLOAD_STUB(procfs, oprgetstatus32, nomod_zero); 697 NO_UNLOAD_STUB(procfs, oprgetpsinfo32, nomod_zero); 698#endif /* _SYSCALL32_IMPL */ 699 NO_UNLOAD_STUB(procfs, prnotify, nomod_zero); 700 NO_UNLOAD_STUB(procfs, prexecstart, nomod_zero); 701 NO_UNLOAD_STUB(procfs, prexecend, nomod_zero); 702 NO_UNLOAD_STUB(procfs, prrelvm, nomod_zero); 703 NO_UNLOAD_STUB(procfs, prbarrier, nomod_zero); 704 NO_UNLOAD_STUB(procfs, estimate_msacct, nomod_zero); 705 NO_UNLOAD_STUB(procfs, pr_getprot, nomod_zero); 706 NO_UNLOAD_STUB(procfs, pr_getprot_done, nomod_zero); 707 NO_UNLOAD_STUB(procfs, pr_getsegsize, nomod_zero); 708 NO_UNLOAD_STUB(procfs, pr_isobject, nomod_zero); 709 NO_UNLOAD_STUB(procfs, pr_isself, nomod_zero); 710 NO_UNLOAD_STUB(procfs, pr_allstopped, nomod_zero); 711 NO_UNLOAD_STUB(procfs, pr_free_watched_pages, nomod_zero); 712 END_MODULE(procfs); 713#endif 714 715/* 716 * Stubs for fifofs 717 */ 718#ifndef FIFO_MODULE 719 MODULE(fifofs,fs); 720 STUB(fifofs, fifovp, 0); 721 STUB(fifofs, fifo_getinfo, 0); 722 STUB(fifofs, fifo_vfastoff, 0); 723 END_MODULE(fifofs); 724#endif 725 726/* 727 * Stubs for ufs 728 * 729 * This is needed to support the old quotactl system call. 730 * When the old sysent stuff goes away, this will need to be revisited. 731 */ 732#ifndef UFS_MODULE 733 MODULE(ufs,fs); 734 STUB(ufs, quotactl, nomod_minus_one); 735 END_MODULE(ufs); 736#endif 737 738/* 739 * Stubs for zfs 740 */ 741#ifndef ZFS_MODULE 742 MODULE(zfs,fs); 743 STUB(zfs, dsl_prop_get, nomod_minus_one); 744 STUB(zfs, spa_boot_init, nomod_minus_one); 745 STUB(zfs, zfs_prop_to_name, nomod_zero); 746 END_MODULE(zfs); 747#endif 748 749/* 750 * Stubs for dcfs 751 */ 752#ifndef DCFS_MODULE 753 MODULE(dcfs,fs); 754 STUB(dcfs, decompvp, 0); 755 END_MODULE(dcfs); 756#endif 757 758/* 759 * Stubs for namefs 760 */ 761#ifndef NAMEFS_MODULE 762 MODULE(namefs,fs); 763 STUB(namefs, nm_unmountall, 0); 764 END_MODULE(namefs); 765#endif 766 767/* 768 * Stubs for sysdc 769 */ 770#ifndef SDC_MODULE 771 MODULE(SDC,sched); 772 NO_UNLOAD_STUB(SDC, sysdc_thread_enter, nomod_zero); 773 END_MODULE(SDC); 774#endif 775 776/* 777 * Stubs for ts_dptbl 778 */ 779#ifndef TS_DPTBL_MODULE 780 MODULE(TS_DPTBL,sched); 781 STUB(TS_DPTBL, ts_getdptbl, 0); 782 STUB(TS_DPTBL, ts_getkmdpris, 0); 783 STUB(TS_DPTBL, ts_getmaxumdpri, 0); 784 END_MODULE(TS_DPTBL); 785#endif 786 787/* 788 * Stubs for rt_dptbl 789 */ 790#ifndef RT_DPTBL_MODULE 791 MODULE(RT_DPTBL,sched); 792 STUB(RT_DPTBL, rt_getdptbl, 0); 793 END_MODULE(RT_DPTBL); 794#endif 795 796/* 797 * Stubs for ia_dptbl 798 */ 799#ifndef IA_DPTBL_MODULE 800 MODULE(IA_DPTBL,sched); 801 STUB(IA_DPTBL, ia_getdptbl, nomod_zero); 802 STUB(IA_DPTBL, ia_getkmdpris, nomod_zero); 803 STUB(IA_DPTBL, ia_getmaxumdpri, nomod_zero); 804 END_MODULE(IA_DPTBL); 805#endif 806 807/* 808 * Stubs for FSS scheduler 809 */ 810#ifndef FSS_MODULE 811 MODULE(FSS,sched); 812 WSTUB(FSS, fss_allocbuf, nomod_zero); 813 WSTUB(FSS, fss_freebuf, nomod_zero); 814 WSTUB(FSS, fss_changeproj, nomod_zero); 815 WSTUB(FSS, fss_changepset, nomod_zero); 816 END_MODULE(FSS); 817#endif 818 819/* 820 * Stubs for fx_dptbl 821 */ 822#ifndef FX_DPTBL_MODULE 823 MODULE(FX_DPTBL,sched); 824 STUB(FX_DPTBL, fx_getdptbl, 0); 825 STUB(FX_DPTBL, fx_getmaxumdpri, 0); 826 END_MODULE(FX_DPTBL); 827#endif 828 829/* 830 * Stubs for bootdev 831 */ 832#ifndef BOOTDEV_MODULE 833 MODULE(bootdev,misc); 834 STUB(bootdev, i_promname_to_devname, 0); 835 STUB(bootdev, i_convert_boot_device_name, 0); 836 END_MODULE(bootdev); 837#endif 838 839/* 840 * stubs for strplumb... 841 */ 842#ifndef STRPLUMB_MODULE 843 MODULE(strplumb,misc); 844 STUB(strplumb, strplumb, 0); 845 STUB(strplumb, strplumb_load, 0); 846 STUB(strplumb, strplumb_get_netdev_path, 0); 847 END_MODULE(strplumb); 848#endif 849 850/* 851 * Stubs for console configuration module 852 */ 853#ifndef CONSCONFIG_MODULE 854 MODULE(consconfig,misc); 855 STUB(consconfig, consconfig, 0); 856 STUB(consconfig, consconfig_get_usb_kb_path, 0); 857 STUB(consconfig, consconfig_get_usb_ms_path, 0); 858 STUB(consconfig, consconfig_get_plat_fbpath, 0); 859 STUB(consconfig, consconfig_console_is_ready, 0); 860 END_MODULE(consconfig); 861#endif 862 863/* 864 * Stubs for accounting. 865 */ 866#ifndef SYSACCT_MODULE 867 MODULE(sysacct,sys); 868 WSTUB(sysacct, acct, nomod_zero); 869 WSTUB(sysacct, acct_fs_in_use, nomod_zero); 870 END_MODULE(sysacct); 871#endif 872 873/* 874 * Stubs for semaphore routines. sem.c 875 */ 876#ifndef SEMSYS_MODULE 877 MODULE(semsys,sys); 878 WSTUB(semsys, semexit, nomod_zero); 879 END_MODULE(semsys); 880#endif 881 882/* 883 * Stubs for shmem routines. shm.c 884 */ 885#ifndef SHMSYS_MODULE 886 MODULE(shmsys,sys); 887 WSTUB(shmsys, shmexit, nomod_zero); 888 WSTUB(shmsys, shmfork, nomod_zero); 889 WSTUB(shmsys, shmgetid, nomod_minus_one); 890 END_MODULE(shmsys); 891#endif 892 893/* 894 * Stubs for doors 895 */ 896#ifndef DOOR_MODULE 897 MODULE(doorfs,sys); 898 WSTUB(doorfs, door_slam, nomod_zero); 899 WSTUB(doorfs, door_exit, nomod_zero); 900 WSTUB(doorfs, door_revoke_all, nomod_zero); 901 WSTUB(doorfs, door_fork, nomod_zero); 902 NO_UNLOAD_STUB(doorfs, door_upcall, nomod_einval); 903 NO_UNLOAD_STUB(doorfs, door_ki_create, nomod_einval); 904 NO_UNLOAD_STUB(doorfs, door_ki_open, nomod_einval); 905 NO_UNLOAD_STUB(doorfs, door_ki_lookup, nomod_zero); 906 WSTUB(doorfs, door_ki_upcall, nomod_einval); 907 WSTUB(doorfs, door_ki_upcall_limited, nomod_einval); 908 WSTUB(doorfs, door_ki_hold, nomod_zero); 909 WSTUB(doorfs, door_ki_rele, nomod_zero); 910 WSTUB(doorfs, door_ki_info, nomod_einval); 911 END_MODULE(doorfs); 912#endif 913 914/* 915 * Stubs for MD5 916 */ 917#ifndef MD5_MODULE 918 MODULE(md5,misc); 919 WSTUB(md5, MD5Init, nomod_zero); 920 WSTUB(md5, MD5Update, nomod_zero); 921 WSTUB(md5, MD5Final, nomod_zero); 922 END_MODULE(md5); 923#endif 924 925/* 926 * Stubs for idmap 927 */ 928#ifndef IDMAP_MODULE 929 MODULE(idmap,misc); 930 STUB(idmap, kidmap_batch_getgidbysid, nomod_zero); 931 STUB(idmap, kidmap_batch_getpidbysid, nomod_zero); 932 STUB(idmap, kidmap_batch_getsidbygid, nomod_zero); 933 STUB(idmap, kidmap_batch_getsidbyuid, nomod_zero); 934 STUB(idmap, kidmap_batch_getuidbysid, nomod_zero); 935 STUB(idmap, kidmap_get_create, nomod_zero); 936 STUB(idmap, kidmap_get_destroy, nomod_zero); 937 STUB(idmap, kidmap_get_mappings, nomod_zero); 938 STUB(idmap, kidmap_getgidbysid, nomod_zero); 939 STUB(idmap, kidmap_getpidbysid, nomod_zero); 940 STUB(idmap, kidmap_getsidbygid, nomod_zero); 941 STUB(idmap, kidmap_getsidbyuid, nomod_zero); 942 STUB(idmap, kidmap_getuidbysid, nomod_zero); 943 STUB(idmap, idmap_get_door, nomod_einval); 944 STUB(idmap, idmap_unreg_dh, nomod_einval); 945 STUB(idmap, idmap_reg_dh, nomod_einval); 946 STUB(idmap, idmap_purge_cache, nomod_einval); 947 END_MODULE(idmap); 948#endif 949 950/* 951 * Stubs for auditing. 952 */ 953#ifndef C2AUDIT_MODULE 954 MODULE(c2audit,sys); 955 NO_UNLOAD_STUB(c2audit, audit_init_module, nomod_zero); 956 NO_UNLOAD_STUB(c2audit, audit_start, nomod_zero); 957 NO_UNLOAD_STUB(c2audit, audit_finish, nomod_zero); 958 NO_UNLOAD_STUB(c2audit, audit, nomod_zero); 959 NO_UNLOAD_STUB(c2audit, auditdoor, nomod_zero); 960 NO_UNLOAD_STUB(c2audit, audit_closef, nomod_zero); 961 NO_UNLOAD_STUB(c2audit, audit_core_start, nomod_zero); 962 NO_UNLOAD_STUB(c2audit, audit_core_finish, nomod_zero); 963 NO_UNLOAD_STUB(c2audit, audit_strputmsg, nomod_zero); 964 NO_UNLOAD_STUB(c2audit, audit_savepath, nomod_zero); 965 NO_UNLOAD_STUB(c2audit, audit_anchorpath, nomod_zero); 966 NO_UNLOAD_STUB(c2audit, audit_exit, nomod_zero); 967 NO_UNLOAD_STUB(c2audit, audit_exec, nomod_zero); 968 NO_UNLOAD_STUB(c2audit, audit_symlink, nomod_zero); 969 NO_UNLOAD_STUB(c2audit, audit_symlink_create, nomod_zero); 970 NO_UNLOAD_STUB(c2audit, audit_vncreate_start, nomod_zero); 971 NO_UNLOAD_STUB(c2audit, audit_vncreate_finish, nomod_zero); 972 NO_UNLOAD_STUB(c2audit, audit_enterprom, nomod_zero); 973 NO_UNLOAD_STUB(c2audit, audit_exitprom, nomod_zero); 974 NO_UNLOAD_STUB(c2audit, audit_chdirec, nomod_zero); 975 NO_UNLOAD_STUB(c2audit, audit_setf, nomod_zero); 976 NO_UNLOAD_STUB(c2audit, audit_sock, nomod_zero); 977 NO_UNLOAD_STUB(c2audit, audit_strgetmsg, nomod_zero); 978 NO_UNLOAD_STUB(c2audit, audit_ipc, nomod_zero); 979 NO_UNLOAD_STUB(c2audit, audit_ipcget, nomod_zero); 980 NO_UNLOAD_STUB(c2audit, audit_fdsend, nomod_zero); 981 NO_UNLOAD_STUB(c2audit, audit_fdrecv, nomod_zero); 982 NO_UNLOAD_STUB(c2audit, audit_priv, nomod_zero); 983 NO_UNLOAD_STUB(c2audit, audit_setppriv, nomod_zero); 984 NO_UNLOAD_STUB(c2audit, audit_devpolicy, nomod_zero); 985 NO_UNLOAD_STUB(c2audit, audit_setfsat_path, nomod_zero); 986 NO_UNLOAD_STUB(c2audit, audit_cryptoadm, nomod_zero); 987 NO_UNLOAD_STUB(c2audit, audit_kssl, nomod_zero); 988 NO_UNLOAD_STUB(c2audit, audit_pf_policy, nomod_zero); 989 NO_UNLOAD_STUB(c2audit, au_doormsg, nomod_zero); 990 NO_UNLOAD_STUB(c2audit, au_uwrite, nomod_zero); 991 NO_UNLOAD_STUB(c2audit, au_to_arg32, nomod_zero); 992 NO_UNLOAD_STUB(c2audit, au_free_rec, nomod_zero); 993 END_MODULE(c2audit); 994#endif 995 996/* 997 * Stubs for kernel rpc security service module 998 */ 999#ifndef RPCSEC_MODULE 1000 MODULE(rpcsec,misc); 1001 NO_UNLOAD_STUB(rpcsec, sec_clnt_revoke, nomod_zero); 1002 NO_UNLOAD_STUB(rpcsec, authkern_create, nomod_zero); 1003 NO_UNLOAD_STUB(rpcsec, sec_svc_msg, nomod_zero); 1004 NO_UNLOAD_STUB(rpcsec, sec_svc_control, nomod_zero); 1005 END_MODULE(rpcsec); 1006#endif 1007 1008/* 1009 * Stubs for rpc RPCSEC_GSS security service module 1010 */ 1011#ifndef RPCSEC_GSS_MODULE 1012 MODULE(rpcsec_gss,misc); 1013 NO_UNLOAD_STUB(rpcsec_gss, __svcrpcsec_gss, nomod_zero); 1014 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_getcred, nomod_zero); 1015 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_set_callback, nomod_zero); 1016 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_secget, nomod_zero); 1017 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_secfree, nomod_zero); 1018 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_seccreate, nomod_zero); 1019 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_set_defaults, nomod_zero); 1020 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_revauth, nomod_zero); 1021 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_secpurge, nomod_zero); 1022 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_cleanup, nomod_zero); 1023 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_get_versions, nomod_zero); 1024 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_max_data_length, nomod_zero); 1025 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_svc_max_data_length, nomod_zero); 1026 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_get_service_type, nomod_zero); 1027 END_MODULE(rpcsec_gss); 1028#endif 1029 1030/* 1031 * Stubs for PCI configurator module (misc/pcicfg). 1032 */ 1033#ifndef PCICFG_MODULE 1034 MODULE(pcicfg,misc); 1035 STUB(pcicfg, pcicfg_configure, 0); 1036 STUB(pcicfg, pcicfg_unconfigure, 0); 1037 END_MODULE(pcicfg); 1038#endif 1039 1040/* 1041 * Stubs for pcieb nexus driver. 1042 */ 1043#ifndef PCIEB_MODULE 1044 MODULE(pcieb,drv); 1045 STUB(pcieb, pcieb_intel_error_workaround, 0); 1046 END_MODULE(pcieb); 1047#endif 1048 1049#ifndef IWSCN_MODULE 1050 MODULE(iwscn,drv); 1051 STUB(iwscn, srpop, 0); 1052 END_MODULE(iwscn); 1053#endif 1054 1055/* 1056 * Stubs for checkpoint-resume module 1057 */ 1058#ifndef CPR_MODULE 1059 MODULE(cpr,misc); 1060 STUB(cpr, cpr, 0); 1061 END_MODULE(cpr); 1062#endif 1063 1064/* 1065 * Stubs for kernel probes (tnf module). Not unloadable. 1066 */ 1067#ifndef TNF_MODULE 1068 MODULE(tnf,drv); 1069 NO_UNLOAD_STUB(tnf, tnf_ref32_1, nomod_zero); 1070 NO_UNLOAD_STUB(tnf, tnf_string_1, nomod_zero); 1071 NO_UNLOAD_STUB(tnf, tnf_opaque_array_1, nomod_zero); 1072 NO_UNLOAD_STUB(tnf, tnf_struct_tag_1, nomod_zero); 1073 NO_UNLOAD_STUB(tnf, tnf_allocate, nomod_zero); 1074 END_MODULE(tnf); 1075#endif 1076 1077/* 1078 * Stubs for i86hvm bootstraping 1079 */ 1080#ifndef HVM_BOOTSTRAP 1081 MODULE(hvm_bootstrap,misc); 1082 NO_UNLOAD_STUB(hvm_bootstrap, hvmboot_rootconf, nomod_zero); 1083 END_MODULE(hvm_bootstrap); 1084#endif 1085 1086/* 1087 * Clustering: stubs for bootstrapping. 1088 */ 1089#ifndef CL_BOOTSTRAP 1090 MODULE(cl_bootstrap,misc); 1091 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_modload, nomod_minus_one); 1092 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_loadrootmodules, nomod_zero); 1093 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_rootconf, nomod_zero); 1094 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_mountroot, nomod_zero); 1095 NO_UNLOAD_WSTUB(cl_bootstrap, clconf_init, nomod_zero); 1096 NO_UNLOAD_WSTUB(cl_bootstrap, clconf_get_nodeid, nomod_zero); 1097 NO_UNLOAD_WSTUB(cl_bootstrap, clconf_maximum_nodeid, nomod_zero); 1098 NO_UNLOAD_WSTUB(cl_bootstrap, cluster, nomod_zero); 1099 END_MODULE(cl_bootstrap); 1100#endif 1101 1102/* 1103 * Clustering: stubs for cluster infrastructure. 1104 */ 1105#ifndef CL_COMM_MODULE 1106 MODULE(cl_comm,misc); 1107 NO_UNLOAD_STUB(cl_comm, cladmin, nomod_minus_one); 1108 END_MODULE(cl_comm); 1109#endif 1110 1111/* 1112 * Clustering: stubs for global file system operations. 1113 */ 1114#ifndef PXFS_MODULE 1115 MODULE(pxfs,fs); 1116 NO_UNLOAD_WSTUB(pxfs, clpxfs_aio_read, nomod_zero); 1117 NO_UNLOAD_WSTUB(pxfs, clpxfs_aio_write, nomod_zero); 1118 NO_UNLOAD_WSTUB(pxfs, cl_flk_state_transition_notify, nomod_zero); 1119 END_MODULE(pxfs); 1120#endif 1121 1122/* 1123 * Stubs for kernel cryptographic framework module (misc/kcf). 1124 */ 1125#ifndef KCF_MODULE 1126 MODULE(kcf,misc); 1127 NO_UNLOAD_STUB(kcf, crypto_mech2id, nomod_minus_one); 1128 NO_UNLOAD_STUB(kcf, crypto_register_provider, nomod_minus_one); 1129 NO_UNLOAD_STUB(kcf, crypto_unregister_provider, nomod_minus_one); 1130 NO_UNLOAD_STUB(kcf, crypto_provider_notification, nomod_minus_one); 1131 NO_UNLOAD_STUB(kcf, crypto_op_notification, nomod_minus_one); 1132 NO_UNLOAD_STUB(kcf, crypto_kmflag, nomod_minus_one); 1133 NO_UNLOAD_STUB(kcf, crypto_digest, nomod_minus_one); 1134 NO_UNLOAD_STUB(kcf, crypto_digest_prov, nomod_minus_one); 1135 NO_UNLOAD_STUB(kcf, crypto_digest_init, nomod_minus_one); 1136 NO_UNLOAD_STUB(kcf, crypto_digest_init_prov, nomod_minus_one); 1137 NO_UNLOAD_STUB(kcf, crypto_digest_update, nomod_minus_one); 1138 NO_UNLOAD_STUB(kcf, crypto_digest_final, nomod_minus_one); 1139 NO_UNLOAD_STUB(kcf, crypto_digest_key_prov, nomod_minus_one); 1140 NO_UNLOAD_STUB(kcf, crypto_encrypt, nomod_minus_one); 1141 NO_UNLOAD_STUB(kcf, crypto_encrypt_prov, nomod_minus_one); 1142 NO_UNLOAD_STUB(kcf, crypto_encrypt_init, nomod_minus_one); 1143 NO_UNLOAD_STUB(kcf, crypto_encrypt_init_prov, nomod_minus_one); 1144 NO_UNLOAD_STUB(kcf, crypto_encrypt_update, nomod_minus_one); 1145 NO_UNLOAD_STUB(kcf, crypto_encrypt_final, nomod_minus_one); 1146 NO_UNLOAD_STUB(kcf, crypto_decrypt, nomod_minus_one); 1147 NO_UNLOAD_STUB(kcf, crypto_decrypt_prov, nomod_minus_one); 1148 NO_UNLOAD_STUB(kcf, crypto_decrypt_init, nomod_minus_one); 1149 NO_UNLOAD_STUB(kcf, crypto_decrypt_init_prov, nomod_minus_one); 1150 NO_UNLOAD_STUB(kcf, crypto_decrypt_update, nomod_minus_one); 1151 NO_UNLOAD_STUB(kcf, crypto_decrypt_final, nomod_minus_one); 1152 NO_UNLOAD_STUB(kcf, crypto_get_all_mech_info, nomod_minus_one); 1153 NO_UNLOAD_STUB(kcf, crypto_key_check, nomod_minus_one); 1154 NO_UNLOAD_STUB(kcf, crypto_key_check_prov, nomod_minus_one); 1155 NO_UNLOAD_STUB(kcf, crypto_key_derive, nomod_minus_one); 1156 NO_UNLOAD_STUB(kcf, crypto_key_generate, nomod_minus_one); 1157 NO_UNLOAD_STUB(kcf, crypto_key_generate_pair, nomod_minus_one); 1158 NO_UNLOAD_STUB(kcf, crypto_key_unwrap, nomod_minus_one); 1159 NO_UNLOAD_STUB(kcf, crypto_key_wrap, nomod_minus_one); 1160 NO_UNLOAD_STUB(kcf, crypto_mac, nomod_minus_one); 1161 NO_UNLOAD_STUB(kcf, crypto_mac_prov, nomod_minus_one); 1162 NO_UNLOAD_STUB(kcf, crypto_mac_verify, nomod_minus_one); 1163 NO_UNLOAD_STUB(kcf, crypto_mac_verify_prov, nomod_minus_one); 1164 NO_UNLOAD_STUB(kcf, crypto_mac_init, nomod_minus_one); 1165 NO_UNLOAD_STUB(kcf, crypto_mac_init_prov, nomod_minus_one); 1166 NO_UNLOAD_STUB(kcf, crypto_mac_update, nomod_minus_one); 1167 NO_UNLOAD_STUB(kcf, crypto_mac_final, nomod_minus_one); 1168 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt, nomod_minus_one); 1169 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_prov, nomod_minus_one); 1170 NO_UNLOAD_STUB(kcf, crypto_mac_verify_decrypt, nomod_minus_one); 1171 NO_UNLOAD_STUB(kcf, crypto_mac_verify_decrypt_prov, nomod_minus_one); 1172 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_init, nomod_minus_one); 1173 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_init_prov, nomod_minus_one); 1174 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_update, nomod_minus_one); 1175 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_final, nomod_minus_one); 1176 NO_UNLOAD_STUB(kcf, crypto_object_copy, nomod_minus_one); 1177 NO_UNLOAD_STUB(kcf, crypto_object_create, nomod_minus_one); 1178 NO_UNLOAD_STUB(kcf, crypto_object_destroy, nomod_minus_one); 1179 NO_UNLOAD_STUB(kcf, crypto_object_find_final, nomod_minus_one); 1180 NO_UNLOAD_STUB(kcf, crypto_object_find_init, nomod_minus_one); 1181 NO_UNLOAD_STUB(kcf, crypto_object_find, nomod_minus_one); 1182 NO_UNLOAD_STUB(kcf, crypto_object_get_attribute_value, nomod_minus_one); 1183 NO_UNLOAD_STUB(kcf, crypto_object_get_size, nomod_minus_one); 1184 NO_UNLOAD_STUB(kcf, crypto_object_set_attribute_value, nomod_minus_one); 1185 NO_UNLOAD_STUB(kcf, crypto_session_close, nomod_minus_one); 1186 NO_UNLOAD_STUB(kcf, crypto_session_login, nomod_minus_one); 1187 NO_UNLOAD_STUB(kcf, crypto_session_logout, nomod_minus_one); 1188 NO_UNLOAD_STUB(kcf, crypto_session_open, nomod_minus_one); 1189 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac, nomod_minus_one); 1190 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_prov, nomod_minus_one); 1191 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_init, nomod_minus_one); 1192 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_init_prov, nomod_minus_one); 1193 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_update, nomod_minus_one); 1194 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_final, nomod_minus_one); 1195 NO_UNLOAD_STUB(kcf, crypto_create_ctx_template, nomod_minus_one); 1196 NO_UNLOAD_STUB(kcf, crypto_destroy_ctx_template, nomod_minus_one); 1197 NO_UNLOAD_STUB(kcf, crypto_get_mech_list, nomod_minus_one); 1198 NO_UNLOAD_STUB(kcf, crypto_free_mech_list, nomod_minus_one); 1199 NO_UNLOAD_STUB(kcf, crypto_cancel_req, nomod_minus_one); 1200 NO_UNLOAD_STUB(kcf, crypto_cancel_ctx, nomod_minus_one); 1201 NO_UNLOAD_STUB(kcf, crypto_bufcall_alloc, nomod_minus_one); 1202 NO_UNLOAD_STUB(kcf, crypto_bufcall_free, nomod_minus_one); 1203 NO_UNLOAD_STUB(kcf, crypto_bufcall, nomod_minus_one); 1204 NO_UNLOAD_STUB(kcf, crypto_unbufcall, nomod_minus_one); 1205 NO_UNLOAD_STUB(kcf, crypto_notify_events, nomod_minus_one); 1206 NO_UNLOAD_STUB(kcf, crypto_unnotify_events, nomod_minus_one); 1207 NO_UNLOAD_STUB(kcf, crypto_get_provider, nomod_minus_one); 1208 NO_UNLOAD_STUB(kcf, crypto_get_provinfo, nomod_minus_one); 1209 NO_UNLOAD_STUB(kcf, crypto_release_provider, nomod_minus_one); 1210 NO_UNLOAD_STUB(kcf, crypto_sign, nomod_minus_one); 1211 NO_UNLOAD_STUB(kcf, crypto_sign_prov, nomod_minus_one); 1212 NO_UNLOAD_STUB(kcf, crypto_sign_init, nomod_minus_one); 1213 NO_UNLOAD_STUB(kcf, crypto_sign_init_prov, nomod_minus_one); 1214 NO_UNLOAD_STUB(kcf, crypto_sign_update, nomod_minus_one); 1215 NO_UNLOAD_STUB(kcf, crypto_sign_final, nomod_minus_one); 1216 NO_UNLOAD_STUB(kcf, crypto_sign_recover, nomod_minus_one); 1217 NO_UNLOAD_STUB(kcf, crypto_sign_recover_prov, nomod_minus_one); 1218 NO_UNLOAD_STUB(kcf, crypto_sign_recover_init_prov, nomod_minus_one); 1219 NO_UNLOAD_STUB(kcf, crypto_verify, nomod_minus_one); 1220 NO_UNLOAD_STUB(kcf, crypto_verify_prov, nomod_minus_one); 1221 NO_UNLOAD_STUB(kcf, crypto_verify_init, nomod_minus_one); 1222 NO_UNLOAD_STUB(kcf, crypto_verify_init_prov, nomod_minus_one); 1223 NO_UNLOAD_STUB(kcf, crypto_verify_update, nomod_minus_one); 1224 NO_UNLOAD_STUB(kcf, crypto_verify_final, nomod_minus_one); 1225 NO_UNLOAD_STUB(kcf, crypto_verify_recover, nomod_minus_one); 1226 NO_UNLOAD_STUB(kcf, crypto_verify_recover_prov, nomod_minus_one); 1227 NO_UNLOAD_STUB(kcf, crypto_verify_recover_init_prov, nomod_minus_one); 1228 NO_UNLOAD_STUB(kcf, random_add_entropy, nomod_minus_one); 1229 NO_UNLOAD_STUB(kcf, random_add_pseudo_entropy, nomod_minus_one); 1230 NO_UNLOAD_STUB(kcf, random_get_bytes, nomod_minus_one); 1231 NO_UNLOAD_STUB(kcf, random_get_pseudo_bytes, nomod_minus_one); 1232 END_MODULE(kcf); 1233#endif 1234 1235/* 1236 * Stubs for sha1. A non-unloadable module. 1237 */ 1238#ifndef SHA1_MODULE 1239 MODULE(sha1,crypto); 1240 NO_UNLOAD_STUB(sha1, SHA1Init, nomod_void); 1241 NO_UNLOAD_STUB(sha1, SHA1Update, nomod_void); 1242 NO_UNLOAD_STUB(sha1, SHA1Final, nomod_void); 1243 END_MODULE(sha1); 1244#endif 1245 1246/* 1247 * The following stubs are used by the mac module. 1248 * Since dld already depends on mac, these 1249 * stubs are needed to avoid circular dependencies. 1250 */ 1251#ifndef DLD_MODULE 1252 MODULE(dld,drv); 1253 STUB(dld, dld_init_ops, nomod_void); 1254 STUB(dld, dld_fini_ops, nomod_void); 1255 STUB(dld, dld_devt_to_instance, nomod_minus_one); 1256 STUB(dld, dld_autopush, nomod_minus_one); 1257 STUB(dld, dld_ioc_register, nomod_einval); 1258 STUB(dld, dld_ioc_unregister, nomod_void); 1259 END_MODULE(dld); 1260#endif 1261 1262/* 1263 * The following stubs are used by the mac module. 1264 * Since dls already depends on mac, these 1265 * stubs are needed to avoid circular dependencies. 1266 */ 1267#ifndef DLS_MODULE 1268 MODULE(dls,misc); 1269 STUB(dls, dls_devnet_mac, nomod_zero); 1270 STUB(dls, dls_devnet_hold_tmp, nomod_einval); 1271 STUB(dls, dls_devnet_rele_tmp, nomod_void); 1272 STUB(dls, dls_devnet_hold_link, nomod_einval); 1273 STUB(dls, dls_devnet_rele_link, nomod_void); 1274 STUB(dls, dls_devnet_prop_task_wait, nomod_void); 1275 STUB(dls, dls_mgmt_get_linkid, nomod_einval); 1276 STUB(dls, dls_devnet_macname2linkid, nomod_einval); 1277 STUB(dls, dls_mgmt_get_linkinfo, nomod_einval); 1278 END_MODULE(dls); 1279#endif 1280 1281#ifndef SOFTMAC_MODULE 1282 MODULE(softmac,drv); 1283 STUB(softmac, softmac_hold_device, nomod_einval); 1284 STUB(softmac, softmac_rele_device, nomod_void); 1285 STUB(softmac, softmac_recreate, nomod_void); 1286 END_MODULE(softmac); 1287#endif 1288 1289#ifndef IPTUN_MODULE 1290 MODULE(iptun,drv); 1291 STUB(iptun, iptun_create, nomod_einval); 1292 STUB(iptun, iptun_delete, nomod_einval); 1293 STUB(iptun, iptun_set_policy, nomod_void) ; 1294 END_MODULE(iptun); 1295#endif 1296 1297/* 1298 * Stubs for dcopy, for Intel IOAT KAPIs 1299 */ 1300#ifndef DCOPY_MODULE 1301 MODULE(dcopy,misc); 1302 NO_UNLOAD_STUB(dcopy, dcopy_query, nomod_minus_one); 1303 NO_UNLOAD_STUB(dcopy, dcopy_query_channel, nomod_minus_one); 1304 NO_UNLOAD_STUB(dcopy, dcopy_alloc, nomod_minus_one); 1305 NO_UNLOAD_STUB(dcopy, dcopy_free, nomod_minus_one); 1306 NO_UNLOAD_STUB(dcopy, dcopy_cmd_alloc, nomod_minus_one); 1307 NO_UNLOAD_STUB(dcopy, dcopy_cmd_free, nomod_void); 1308 NO_UNLOAD_STUB(dcopy, dcopy_cmd_post, nomod_minus_one); 1309 NO_UNLOAD_STUB(dcopy, dcopy_cmd_poll, nomod_minus_one); 1310 END_MODULE(dcopy); 1311#endif 1312 1313/* 1314 * Stubs for acpica 1315 */ 1316#ifndef ACPICA_MODULE 1317 MODULE(acpica,misc); 1318 NO_UNLOAD_STUB(acpica, AcpiOsReadPort, nomod_minus_one) ; 1319 NO_UNLOAD_STUB(acpica, AcpiOsWritePort, nomod_minus_one) ; 1320 NO_UNLOAD_STUB(acpica, AcpiInstallNotifyHandler, nomod_minus_one) ; 1321 NO_UNLOAD_STUB(acpica, AcpiRemoveNotifyHandler, nomod_minus_one) ; 1322 NO_UNLOAD_STUB(acpica, AcpiEvaluateObject, nomod_minus_one) ; 1323 NO_UNLOAD_STUB(acpica, AcpiEvaluateObjectTyped, nomod_minus_one) ; 1324 NO_UNLOAD_STUB(acpica, AcpiWriteBitRegister, nomod_minus_one) ; 1325 NO_UNLOAD_STUB(acpica, AcpiReadBitRegister, nomod_minus_one) ; 1326 NO_UNLOAD_STUB(acpica, AcpiOsFree, nomod_minus_one) ; 1327 NO_UNLOAD_STUB(acpica, acpica_get_handle_cpu, nomod_minus_one) ; 1328 NO_UNLOAD_STUB(acpica, acpica_get_global_FADT, nomod_minus_one) ; 1329 NO_UNLOAD_STUB(acpica, acpica_write_cpupm_capabilities, 1330 nomod_minus_one) ; 1331 NO_UNLOAD_STUB(acpica, __acpi_wbinvd, nomod_minus_one) ; 1332 NO_UNLOAD_STUB(acpica, acpi_reset_system, nomod_minus_one) ; 1333 END_MODULE(acpica); 1334#endif 1335 1336/* 1337 * Stubs for acpidev 1338 */ 1339#ifndef ACPIDEV_MODULE 1340 MODULE(acpidev,misc); 1341 NO_UNLOAD_STUB(acpidev, acpidev_dr_get_cpu_numa_info, nomod_minus_one) ; 1342 NO_UNLOAD_STUB(acpidev, acpidev_dr_free_cpu_numa_info, 1343 nomod_minus_one) ; 1344 END_MODULE(acpidev); 1345#endif 1346 1347#ifndef IPNET_MODULE 1348 MODULE(ipnet,drv); 1349 STUB(ipnet, ipnet_if_getdev, nomod_zero); 1350 STUB(ipnet, ipnet_walk_if, nomod_zero); 1351 END_MODULE(ipnet); 1352#endif 1353 1354#ifndef IOMMULIB_MODULE 1355 MODULE(iommulib,misc); 1356 STUB(iommulib, iommulib_nex_close, nomod_void); 1357 END_MODULE(iommulib); 1358#endif 1359 1360/* 1361 * Stubs for rootnex nexus driver. 1362 */ 1363#ifndef ROOTNEX_MODULE 1364 MODULE(rootnex,drv); 1365 STUB(rootnex, immu_init, 0); 1366 STUB(rootnex, immu_startup, 0); 1367 STUB(rootnex, immu_physmem_update, 0); 1368 END_MODULE(rootnex); 1369#endif 1370 1371/* 1372 * Stubs for kernel socket, for iscsi 1373 */ 1374#ifndef KSOCKET_MODULE 1375 MODULE(ksocket, misc); 1376 NO_UNLOAD_STUB(ksocket, ksocket_setsockopt, nomod_minus_one); 1377 NO_UNLOAD_STUB(ksocket, ksocket_getsockopt, nomod_minus_one); 1378 NO_UNLOAD_STUB(ksocket, ksocket_getpeername, nomod_minus_one); 1379 NO_UNLOAD_STUB(ksocket, ksocket_getsockname, nomod_minus_one); 1380 NO_UNLOAD_STUB(ksocket, ksocket_socket, nomod_minus_one); 1381 NO_UNLOAD_STUB(ksocket, ksocket_bind, nomod_minus_one); 1382 NO_UNLOAD_STUB(ksocket, ksocket_listen, nomod_minus_one); 1383 NO_UNLOAD_STUB(ksocket, ksocket_accept, nomod_minus_one); 1384 NO_UNLOAD_STUB(ksocket, ksocket_connect, nomod_minus_one); 1385 NO_UNLOAD_STUB(ksocket, ksocket_recv, nomod_minus_one); 1386 NO_UNLOAD_STUB(ksocket, ksocket_recvfrom, nomod_minus_one); 1387 NO_UNLOAD_STUB(ksocket, ksocket_recvmsg, nomod_minus_one); 1388 NO_UNLOAD_STUB(ksocket, ksocket_send, nomod_minus_one); 1389 NO_UNLOAD_STUB(ksocket, ksocket_sendto, nomod_minus_one); 1390 NO_UNLOAD_STUB(ksocket, ksocket_sendmsg, nomod_minus_one); 1391 NO_UNLOAD_STUB(ksocket, ksocket_ioctl, nomod_minus_one); 1392 NO_UNLOAD_STUB(ksocket, ksocket_setcallbacks, nomod_minus_one); 1393 NO_UNLOAD_STUB(ksocket, ksocket_hold, nomod_minus_one); 1394 NO_UNLOAD_STUB(ksocket, ksocket_rele, nomod_minus_one); 1395 NO_UNLOAD_STUB(ksocket, ksocket_shutdown, nomod_minus_one); 1396 NO_UNLOAD_STUB(ksocket, ksocket_close, nomod_minus_one); 1397 END_MODULE(ksocket); 1398#endif 1399 1400/* 1401 * Stubs for elfexec 1402 */ 1403#ifndef ELFEXEC_MODULE 1404 MODULE(elfexec,exec); 1405 STUB(elfexec, elfexec, nomod_einval); 1406 STUB(elfexec, mapexec_brand, nomod_einval); 1407#if defined(__amd64) 1408 STUB(elfexec, elf32exec, nomod_einval); 1409 STUB(elfexec, mapexec32_brand, nomod_einval); 1410#endif 1411 END_MODULE(elfexec); 1412#endif 1413 1414/* 1415 * Stub(s) for APIX module. 1416 */ 1417#ifndef APIX_MODULE 1418 MODULE(apix,mach); 1419 WSTUB(apix, apix_loaded, nomod_zero); 1420 END_MODULE(apix); 1421#endif 1422 1423/ this is just a marker for the area of text that contains stubs 1424 1425 ENTRY_NP(stubs_end) 1426 nop 1427 1428#endif /* lint */ 1429