sndstat.c (10b3b54548f2290bbe8d8f88c59c28d12b7a635d) | sndstat.c (13e403fdeadd26f9748ba83ea50ee271fbfc862a) |
---|---|
1/*- 2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 3 * Copyright (c) 2001 Cameron Grant <cg@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 65 unchanged lines hidden (view full) --- 74#define SNDSTAT_PID_SET(x, y) (x)->si_drv1 = (void *)((intptr_t)(y)) 75#define SNDSTAT_FLUSH() do { \ 76 if (sndstat_bufptr != -1) { \ 77 sbuf_delete(&sndstat_sbuf); \ 78 sndstat_bufptr = -1; \ 79 } \ 80} while (0) 81 | 1/*- 2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 3 * Copyright (c) 2001 Cameron Grant <cg@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 65 unchanged lines hidden (view full) --- 74#define SNDSTAT_PID_SET(x, y) (x)->si_drv1 = (void *)((intptr_t)(y)) 75#define SNDSTAT_FLUSH() do { \ 76 if (sndstat_bufptr != -1) { \ 77 sbuf_delete(&sndstat_sbuf); \ 78 sndstat_bufptr = -1; \ 79 } \ 80} while (0) 81 |
82static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(none); | 82static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(sndstat_devlist); |
83 84int snd_verbose = 1; 85TUNABLE_INT("hw.snd.verbose", &snd_verbose); 86 87#ifdef SND_DEBUG 88static int 89sysctl_hw_snd_sndstat_pid(SYSCTL_HANDLER_ARGS) 90{ --- 359 unchanged lines hidden --- | 83 84int snd_verbose = 1; 85TUNABLE_INT("hw.snd.verbose", &snd_verbose); 86 87#ifdef SND_DEBUG 88static int 89sysctl_hw_snd_sndstat_pid(SYSCTL_HANDLER_ARGS) 90{ --- 359 unchanged lines hidden --- |