Print this page
9696 add /etc/system.d support
Portions contributed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Toomas Soome <tsoome@me.com>


 529  */
 530 
 531 #define MOD_NOAUTOUNLOAD        0x1     /* Auto mod-unloader skips this mod */
 532 #define MOD_NONOTIFY            0x2     /* No krtld notifications on (un)load */
 533 #define MOD_NOUNLOAD            0x4     /* Assume EBUSY for all _fini's */
 534 
 535 
 536 #ifdef _KERNEL
 537 
 538 #define MOD_BIND_HASHSIZE       64
 539 #define MOD_BIND_HASHMASK       (MOD_BIND_HASHSIZE-1)
 540 
 541 typedef int modid_t;
 542 
 543 /*
 544  * global function and data declarations
 545  */
 546 extern kmutex_t mod_lock;
 547 
 548 extern char *systemfile;

 549 extern char **syscallnames;
 550 extern int moddebug;
 551 
 552 /*
 553  * this is the head of a doubly linked list.  Only the next and prev
 554  * pointers are used
 555  */
 556 extern modctl_t modules;
 557 
 558 extern int modload_qualified(const char *,
 559     const char *, const char *, const char *, uint_t[], int, int *);
 560 
 561 extern void     mod_setup(void);
 562 extern int      modload(const char *, const char *);
 563 extern int      modloadonly(const char *, const char *);
 564 extern int      modunload(int);
 565 extern int      mod_hold_stub(struct mod_stub_info *);
 566 extern void     modunload_disable(void);
 567 extern void     modunload_enable(void);
 568 extern void     modunload_begin(void);




 529  */
 530 
 531 #define MOD_NOAUTOUNLOAD        0x1     /* Auto mod-unloader skips this mod */
 532 #define MOD_NONOTIFY            0x2     /* No krtld notifications on (un)load */
 533 #define MOD_NOUNLOAD            0x4     /* Assume EBUSY for all _fini's */
 534 
 535 
 536 #ifdef _KERNEL
 537 
 538 #define MOD_BIND_HASHSIZE       64
 539 #define MOD_BIND_HASHMASK       (MOD_BIND_HASHSIZE-1)
 540 
 541 typedef int modid_t;
 542 
 543 /*
 544  * global function and data declarations
 545  */
 546 extern kmutex_t mod_lock;
 547 
 548 extern char *systemfile;
 549 extern char *self_assembly;
 550 extern char **syscallnames;
 551 extern int moddebug;
 552 
 553 /*
 554  * this is the head of a doubly linked list.  Only the next and prev
 555  * pointers are used
 556  */
 557 extern modctl_t modules;
 558 
 559 extern int modload_qualified(const char *,
 560     const char *, const char *, const char *, uint_t[], int, int *);
 561 
 562 extern void     mod_setup(void);
 563 extern int      modload(const char *, const char *);
 564 extern int      modloadonly(const char *, const char *);
 565 extern int      modunload(int);
 566 extern int      mod_hold_stub(struct mod_stub_info *);
 567 extern void     modunload_disable(void);
 568 extern void     modunload_enable(void);
 569 extern void     modunload_begin(void);