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

Function xlp_sec_init

freebsd/mips/nlm/dev/sec/nlmsec.c:231–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229#endif /* NLM_SEC_DEBUG */
230
231static int
232xlp_sec_init(struct xlp_sec_softc *sc)
233{
234
235 /* Register interrupt handler for the SEC CMS messages */
236 if (register_msgring_handler(sc->sec_vc_start,
237 sc->sec_vc_end, nlm_xlpsec_msgring_handler, sc) != 0) {
238 printf("Couldn't register sec msgring handler\n");
239 return (-1);
240 }
241
242 /* Do the CMS credit initialization */
243 /* Currently it is configured by default to 50 when kernel comes up */
244
245 return (0);
246}
247
248/* This function is called from an interrupt handler */
249void

Callers 1

xlp_sec_attachFunction · 0.85

Calls 2

register_msgring_handlerFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected