2352 fasttrap_attach, /* attach */
2353 fasttrap_detach, /* detach */
2354 nodev, /* reset */
2355 &fasttrap_cb_ops, /* driver operations */
2356 NULL, /* bus operations */
2357 nodev, /* dev power */
2358 ddi_quiesce_not_needed, /* quiesce */
2359 };
2360
2361 /*
2362 * Module linkage information for the kernel.
2363 */
2364 static struct modldrv modldrv = {
2365 &mod_driverops, /* module type (this is a pseudo driver) */
2366 "Fasttrap Tracing", /* name of module */
2367 &fasttrap_ops, /* driver ops */
2368 };
2369
2370 static struct modlinkage modlinkage = {
2371 MODREV_1,
2372 (void *)&modldrv,
2373 NULL
2374 };
2375
2376 int
2377 _init(void)
2378 {
2379 return (mod_install(&modlinkage));
2380 }
2381
2382 int
2383 _info(struct modinfo *modinfop)
2384 {
2385 return (mod_info(&modlinkage, modinfop));
2386 }
2387
2388 int
2389 _fini(void)
2390 {
2391 return (mod_remove(&modlinkage));
2392 }
|
2352 fasttrap_attach, /* attach */
2353 fasttrap_detach, /* detach */
2354 nodev, /* reset */
2355 &fasttrap_cb_ops, /* driver operations */
2356 NULL, /* bus operations */
2357 nodev, /* dev power */
2358 ddi_quiesce_not_needed, /* quiesce */
2359 };
2360
2361 /*
2362 * Module linkage information for the kernel.
2363 */
2364 static struct modldrv modldrv = {
2365 &mod_driverops, /* module type (this is a pseudo driver) */
2366 "Fasttrap Tracing", /* name of module */
2367 &fasttrap_ops, /* driver ops */
2368 };
2369
2370 static struct modlinkage modlinkage = {
2371 MODREV_1,
2372 { (void *)&modldrv, NULL }
2373 };
2374
2375 int
2376 _init(void)
2377 {
2378 return (mod_install(&modlinkage));
2379 }
2380
2381 int
2382 _info(struct modinfo *modinfop)
2383 {
2384 return (mod_info(&modlinkage, modinfop));
2385 }
2386
2387 int
2388 _fini(void)
2389 {
2390 return (mod_remove(&modlinkage));
2391 }
|