]> arthur.barton.de Git - netatalk.git/blob - sys/solaris/linkage.c
Initial revision
[netatalk.git] / sys / solaris / linkage.c
1 /*
2  * Linkage information.  Mostly this is Solaris specific, but not all.
3  * Code to do real work is in other files, this file just has the crap
4  * to get the real code loaded and called.
5  */
6
7 #include <sys/types.h>
8 #include <sys/modctl.h>
9 #include <sys/cmn_err.h>
10
11 char    *netatalk_version = VERSION;
12
13 extern struct modldrv tpi_ldrv;
14 extern struct modldrv dlpi_lstrmod;
15
16 static struct modlinkage        ddp_linkage = {
17     MODREV_1,
18     {
19         (void *)&tpi_ldrv,
20         (void *)&dlpi_lstrmod,
21         NULL,
22     }
23 };
24
25 /*
26  * While these are code, they're mostly related to linkage, so
27  * we leave them here.
28  */
29     int
30 _init( void )
31 {
32     cmn_err( CE_CONT, "?netatalk %s\n", netatalk_version );
33     return( mod_install( &ddp_linkage ));
34 }
35
36     int
37  _info( struct modinfo *modinfop )
38 {
39     return( mod_info( &ddp_linkage, modinfop ));
40 }
41
42     int
43 _fini( void )
44 {
45     return( mod_remove( &ddp_linkage ));
46 }