MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xlp_discard_msg_vc

Function xlp_discard_msg_vc

freebsd/mips/nlm/cms.c:236–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236static void
237xlp_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
257void
258xlp_cms_enable_intr(int node, int cpu, int type, int watermark)

Callers 1

msgring_processFunction · 0.85

Calls 3

nlm_save_flags_cop2Function · 0.85
nlm_fmn_msgrcvFunction · 0.85
nlm_restore_flagsFunction · 0.85

Tested by

no test coverage detected