399 rsm_detach, /* detach */
400 nodev, /* reset */
401 &rsm_cb_ops, /* driver operations */
402 (struct bus_ops *)0, /* bus operations */
403 0,
404 ddi_quiesce_not_needed, /* quiesce */
405 };
406
407 /*
408 * Module linkage information for the kernel.
409 */
410
411 static struct modldrv modldrv = {
412 &mod_driverops, /* Type of module. This one is a pseudo driver */
413 "Remote Shared Memory Driver",
414 &rsm_ops, /* driver ops */
415 };
416
417 static struct modlinkage modlinkage = {
418 MODREV_1,
419 (void *)&modldrv,
420 0,
421 0,
422 0
423 };
424
425 static void rsm_dr_callback_post_add(void *arg, pgcnt_t delta);
426 static int rsm_dr_callback_pre_del(void *arg, pgcnt_t delta);
427 static void rsm_dr_callback_post_del(void *arg, pgcnt_t delta, int cancelled);
428
429 static kphysm_setup_vector_t rsm_dr_callback_vec = {
430 KPHYSM_SETUP_VECTOR_VERSION,
431 rsm_dr_callback_post_add,
432 rsm_dr_callback_pre_del,
433 rsm_dr_callback_post_del
434 };
435
436 /* This flag can be changed to 0 to help with PIT testing */
437 int rsmka_modunloadok = 1;
438 int no_reply_cnt = 0;
439
440 uint64_t rsm_ctrlmsg_errcnt = 0;
441 uint64_t rsm_ipcsend_errcnt = 0;
442
|
399 rsm_detach, /* detach */
400 nodev, /* reset */
401 &rsm_cb_ops, /* driver operations */
402 (struct bus_ops *)0, /* bus operations */
403 0,
404 ddi_quiesce_not_needed, /* quiesce */
405 };
406
407 /*
408 * Module linkage information for the kernel.
409 */
410
411 static struct modldrv modldrv = {
412 &mod_driverops, /* Type of module. This one is a pseudo driver */
413 "Remote Shared Memory Driver",
414 &rsm_ops, /* driver ops */
415 };
416
417 static struct modlinkage modlinkage = {
418 MODREV_1,
419 { (void *)&modldrv, NULL }
420 };
421
422 static void rsm_dr_callback_post_add(void *arg, pgcnt_t delta);
423 static int rsm_dr_callback_pre_del(void *arg, pgcnt_t delta);
424 static void rsm_dr_callback_post_del(void *arg, pgcnt_t delta, int cancelled);
425
426 static kphysm_setup_vector_t rsm_dr_callback_vec = {
427 KPHYSM_SETUP_VECTOR_VERSION,
428 rsm_dr_callback_post_add,
429 rsm_dr_callback_pre_del,
430 rsm_dr_callback_post_del
431 };
432
433 /* This flag can be changed to 0 to help with PIT testing */
434 int rsmka_modunloadok = 1;
435 int no_reply_cnt = 0;
436
437 uint64_t rsm_ctrlmsg_errcnt = 0;
438 uint64_t rsm_ipcsend_errcnt = 0;
439
|