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