Go to the documentation of this file.
26 static const char ID_sccs[] =
"@(#)queue.c 2.9 97/08/04 (C) SK " ;
36 smc->
q.ev_put = smc->
q.ev_get = smc->
q.ev_queue ;
44 PRINTF(
"queue class %d event %d\n",
class,event) ;
45 smc->
q.ev_put->class =
class ;
46 smc->
q.ev_put->event =
event ;
48 smc->
q.ev_put = smc->
q.ev_queue ;
50 if (smc->
q.ev_put == smc->
q.ev_get) {
60 PRINTF(
"timer event class %d token %d\n",
79 PRINTF(
"dispatch get %x put %x\n",ev,smc->
q.ev_put) ;
80 while (ev != smc->
q.ev_put) {
81 PRINTF(
"dispatch class %d event %d\n",ev->class,ev->
event) ;
82 switch(
class = ev->class) {
97 timer_test_event(smc,(
int)ev->
event) ;
113 ev = smc->
q.ev_queue ;
131 return smc->
mib.fddiSMTCF_State;
144 struct smt_debug *
deb;
155 else if (!
strcmp(flag,
"smtf"))
156 deb->d_smtf =
value ;
157 else if (!
strcmp(flag,
"pcm"))
159 else if (!
strcmp(flag,
"rmt"))
161 else if (!
strcmp(flag,
"cfm"))
163 else if (!
strcmp(flag,
"ecm"))
165 printf(
"smt %d\n",deb->d_smt) ;
166 printf(
"smtf %d\n",deb->d_smtf) ;
167 printf(
"pcm %d\n",deb->d_pcm) ;
168 printf(
"rmt %d\n",deb->d_rmt) ;
169 printf(
"cfm %d\n",deb->d_cfm) ;
170 printf(
"ecm %d\n",deb->d_ecm) ;