296 #define PRINT_MASK_ALL 0xFFFFFFFFU
297 uint_t wc_errmask = PRINT_MASK_ALL;
298 uint_t wc_errlevel = PRINT_L2;
299
300 #else
301 #define DPRINTF(l, m, args) /* NOTHING */
302 #endif
303 #endif
304
305 /*
306 * Module linkage information for the kernel.
307 */
308 static struct modldrv modldrv = {
309 &mod_driverops, /* Type of module. This one is a pseudo driver */
310 "Workstation multiplexer Driver 'wc'",
311 &wc_ops, /* driver ops */
312 };
313
314 static struct modlinkage modlinkage = {
315 MODREV_1,
316 &modldrv,
317 NULL
318 };
319
320 int
321 _init(void)
322 {
323 int rc;
324 if ((rc = mod_install(&modlinkage)) == 0)
325 vt_init();
326 return (rc);
327 }
328
329 int
330 _fini(void)
331 {
332 return (mod_remove(&modlinkage));
333 }
334
335 int
336 _info(struct modinfo *modinfop)
337 {
|
296 #define PRINT_MASK_ALL 0xFFFFFFFFU
297 uint_t wc_errmask = PRINT_MASK_ALL;
298 uint_t wc_errlevel = PRINT_L2;
299
300 #else
301 #define DPRINTF(l, m, args) /* NOTHING */
302 #endif
303 #endif
304
305 /*
306 * Module linkage information for the kernel.
307 */
308 static struct modldrv modldrv = {
309 &mod_driverops, /* Type of module. This one is a pseudo driver */
310 "Workstation multiplexer Driver 'wc'",
311 &wc_ops, /* driver ops */
312 };
313
314 static struct modlinkage modlinkage = {
315 MODREV_1,
316 { &modldrv, NULL }
317 };
318
319 int
320 _init(void)
321 {
322 int rc;
323 if ((rc = mod_install(&modlinkage)) == 0)
324 vt_init();
325 return (rc);
326 }
327
328 int
329 _fini(void)
330 {
331 return (mod_remove(&modlinkage));
332 }
333
334 int
335 _info(struct modinfo *modinfop)
336 {
|