76
77 static struct sysent in_sync_sysent = {
78 2, /* number of arguments */
79 SE_ARGC | SE_32RVAL1, /* c-style calling, 32-bit return value */
80 in_sync_sys, /* the handler */
81 (krwlock_t *)0 /* rw lock allocated/used by framework */
82 };
83
84 static struct modlsys modlsys = {
85 &mod_syscallops, "instance binding syscall", &in_sync_sysent
86 };
87
88 #ifdef _SYSCALL32_IMPL
89 static struct modlsys modlsys32 = {
90 &mod_syscallops32, "32-bit instance binding syscall", &in_sync_sysent
91 };
92 #endif
93
94 static struct modlinkage modlinkage = {
95 MODREV_1,
96 &modlsys,
97 #ifdef _SYSCALL32_IMPL
98 &modlsys32,
99 #endif
100 NULL
101 };
102
103 int
104 _init(void)
105 {
106 return (mod_install(&modlinkage));
107 }
108
109 int
110 _info(struct modinfo *modinfop)
111 {
112 return (mod_info(&modlinkage, modinfop));
113 }
114
115 int
116 _fini(void)
117 {
118 return (mod_remove(&modlinkage));
119 }
120
|
76
77 static struct sysent in_sync_sysent = {
78 2, /* number of arguments */
79 SE_ARGC | SE_32RVAL1, /* c-style calling, 32-bit return value */
80 in_sync_sys, /* the handler */
81 (krwlock_t *)0 /* rw lock allocated/used by framework */
82 };
83
84 static struct modlsys modlsys = {
85 &mod_syscallops, "instance binding syscall", &in_sync_sysent
86 };
87
88 #ifdef _SYSCALL32_IMPL
89 static struct modlsys modlsys32 = {
90 &mod_syscallops32, "32-bit instance binding syscall", &in_sync_sysent
91 };
92 #endif
93
94 static struct modlinkage modlinkage = {
95 MODREV_1,
96 { &modlsys,
97 #ifdef _SYSCALL32_IMPL
98 &modlsys32,
99 #endif
100 NULL
101 }
102 };
103
104 int
105 _init(void)
106 {
107 return (mod_install(&modlinkage));
108 }
109
110 int
111 _info(struct modinfo *modinfop)
112 {
113 return (mod_info(&modlinkage, modinfop));
114 }
115
116 int
117 _fini(void)
118 {
119 return (mod_remove(&modlinkage));
120 }
121
|