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

Function sysbeep

freebsd/kern/kern_cons.c:667–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667int
668sysbeep(int pitch, int period)
669{
670
671 if (timer_spkr_acquire()) {
672 if (!beeping) {
673 /* Something else owns it. */
674 return (EBUSY);
675 }
676 }
677 timer_spkr_setfreq(pitch);
678 if (!beeping) {
679 beeping = period;
680 callout_reset(&beeping_timer, period, sysbeepstop, NULL);
681 }
682 return (0);
683}
684
685static void
686sysbeep_init(void *unused)

Callers 1

trapFunction · 0.85

Calls 2

timer_spkr_acquireFunction · 0.85
timer_spkr_setfreqFunction · 0.85

Tested by

no test coverage detected