84 static struct streamtab usb_ah_info;
85 static struct fmodsw fsw = {
86 "usb_ah",
87 &usb_ah_info,
88 D_NEW | D_MP | D_MTPERMOD
89 };
90
91 /*
92 * Module linkage information for the kernel.
93 */
94 extern struct mod_ops mod_strmodops;
95
96 static struct modlstrmod modlstrmod = {
97 &mod_strmodops,
98 "USB audio hid streams",
99 &fsw
100 };
101
102 static struct modlinkage modlinkage = {
103 MODREV_1,
104 (void *)&modlstrmod,
105 NULL
106 };
107
108 /*
109 * Warlock is not aware of the automatic locking mechanisms for
110 * streams modules.
111 * Since warlock is not aware of the streams perimeters, these notes
112 * have been added.
113 */
114 _NOTE(SCHEME_PROTECTS_DATA("unique per call", iocblk))
115 _NOTE(SCHEME_PROTECTS_DATA("unique per call", datab))
116 _NOTE(SCHEME_PROTECTS_DATA("unique per call", msgb))
117 _NOTE(SCHEME_PROTECTS_DATA("unique per call", queue))
118
119 /*
120 * Module qinit functions
121 */
122 static struct module_info usb_ah_minfo = {
123 0, /* module id number */
124 "usb_ah", /* module name */
125 0, /* min packet size accepted */
|
84 static struct streamtab usb_ah_info;
85 static struct fmodsw fsw = {
86 "usb_ah",
87 &usb_ah_info,
88 D_NEW | D_MP | D_MTPERMOD
89 };
90
91 /*
92 * Module linkage information for the kernel.
93 */
94 extern struct mod_ops mod_strmodops;
95
96 static struct modlstrmod modlstrmod = {
97 &mod_strmodops,
98 "USB audio hid streams",
99 &fsw
100 };
101
102 static struct modlinkage modlinkage = {
103 MODREV_1,
104 { (void *)&modlstrmod, NULL }
105 };
106
107 /*
108 * Warlock is not aware of the automatic locking mechanisms for
109 * streams modules.
110 * Since warlock is not aware of the streams perimeters, these notes
111 * have been added.
112 */
113 _NOTE(SCHEME_PROTECTS_DATA("unique per call", iocblk))
114 _NOTE(SCHEME_PROTECTS_DATA("unique per call", datab))
115 _NOTE(SCHEME_PROTECTS_DATA("unique per call", msgb))
116 _NOTE(SCHEME_PROTECTS_DATA("unique per call", queue))
117
118 /*
119 * Module qinit functions
120 */
121 static struct module_info usb_ah_minfo = {
122 0, /* module id number */
123 "usb_ah", /* module name */
124 0, /* min packet size accepted */
|