953 };
954
955 struct streamtab rdsinfo = {
956 &rinit, &winit, NULL, NULL
957 };
958
959 DDI_DEFINE_STREAM_OPS(rds_devops, nulldev, nulldev, rds_attach, rds_detach,
960 nulldev, rds_info, RDS_DEVMTFLAGS, &RDS_STRTAB, ddi_quiesce_not_supported);
961
962 /*
963 * Module linkage information for the kernel.
964 */
965 static struct modldrv modldrv = {
966 &mod_driverops,
967 RDS_DEVDESC,
968 &rds_devops
969 };
970
971 static struct modlinkage modlinkage = {
972 MODREV_1,
973 &modldrv,
974 NULL
975 };
976
977 int
978 _init(void)
979 {
980 int ret;
981
982 rds_init();
983
984 ret = mod_install(&modlinkage);
985 if (ret != 0)
986 goto done;
987 ret = ldi_ident_from_mod(&modlinkage, &rds_li);
988 if (ret != 0)
989 rds_li = NULL;
990 done:
991 return (ret);
992 }
993
994 int
|
953 };
954
955 struct streamtab rdsinfo = {
956 &rinit, &winit, NULL, NULL
957 };
958
959 DDI_DEFINE_STREAM_OPS(rds_devops, nulldev, nulldev, rds_attach, rds_detach,
960 nulldev, rds_info, RDS_DEVMTFLAGS, &RDS_STRTAB, ddi_quiesce_not_supported);
961
962 /*
963 * Module linkage information for the kernel.
964 */
965 static struct modldrv modldrv = {
966 &mod_driverops,
967 RDS_DEVDESC,
968 &rds_devops
969 };
970
971 static struct modlinkage modlinkage = {
972 MODREV_1,
973 { &modldrv, NULL }
974 };
975
976 int
977 _init(void)
978 {
979 int ret;
980
981 rds_init();
982
983 ret = mod_install(&modlinkage);
984 if (ret != 0)
985 goto done;
986 ret = ldi_ident_from_mod(&modlinkage, &rds_li);
987 if (ret != 0)
988 rds_li = NULL;
989 done:
990 return (ret);
991 }
992
993 int
|