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

Function loginclass_racct_foreach

freebsd/kern/kern_loginclass.c:246–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void
247loginclass_racct_foreach(void (*callback)(struct racct *racct,
248 void *arg2, void *arg3), void (*pre)(void), void (*post)(void),
249 void *arg2, void *arg3)
250{
251 struct loginclass *lc;
252
253 rw_rlock(&loginclasses_lock);
254 if (pre != NULL)
255 (pre)();
256 LIST_FOREACH(lc, &loginclasses, lc_next)
257 (callback)(lc->lc_racct, arg2, arg3);
258 if (post != NULL)
259 (post)();
260 rw_runlock(&loginclasses_lock);
261}

Callers 3

rctl_rule_removeFunction · 0.85
sys_rctl_get_rulesFunction · 0.85
racct_decayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected