| 234 | } |
| 235 | |
| 236 | static void |
| 237 | xlp_discard_msg_vc(u_int vcmask) |
| 238 | { |
| 239 | struct nlm_fmn_msg msg; |
| 240 | int srcid = 0, size = 0, code = 0, vc; |
| 241 | uint32_t mflags, status; |
| 242 | |
| 243 | for (vc = 0; vc < 4; vc++) { |
| 244 | for (;;) { |
| 245 | mflags = nlm_save_flags_cop2(); |
| 246 | status = nlm_fmn_msgrcv(vc, &srcid, |
| 247 | &size, &code, &msg); |
| 248 | nlm_restore_flags(mflags); |
| 249 | |
| 250 | /* break if there is no msg or error */ |
| 251 | if (status != 0) |
| 252 | break; |
| 253 | } |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | void |
| 258 | xlp_cms_enable_intr(int node, int cpu, int type, int watermark) |
no test coverage detected