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

Function amrr_sysctl_interval

freebsd/net80211/ieee80211_amrr.c:440–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440static int
441amrr_sysctl_interval(SYSCTL_HANDLER_ARGS)
442{
443 struct ieee80211vap *vap = arg1;
444 struct ieee80211_amrr *amrr = vap->iv_rs;
445 int msecs, error;
446
447 if (!amrr)
448 return ENOMEM;
449
450 msecs = ticks_to_msecs(amrr->amrr_interval);
451 error = sysctl_handle_int(oidp, &msecs, 0, req);
452 if (error || !req->newptr)
453 return error;
454 amrr_setinterval(vap, msecs);
455 return 0;
456}
457
458static void
459amrr_sysctlattach(struct ieee80211vap *vap,

Callers

nothing calls this directly

Calls 2

sysctl_handle_intFunction · 0.85
amrr_setintervalFunction · 0.85

Tested by

no test coverage detected