1*1b191cb5SApple OSS Distributions /*
2*1b191cb5SApple OSS Distributions * Copyright (c) 1998-2010 Apple Inc. All rights reserved.
3*1b191cb5SApple OSS Distributions *
4*1b191cb5SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5*1b191cb5SApple OSS Distributions *
6*1b191cb5SApple OSS Distributions * This file contains Original Code and/or Modifications of Original Code
7*1b191cb5SApple OSS Distributions * as defined in and that are subject to the Apple Public Source License
8*1b191cb5SApple OSS Distributions * Version 2.0 (the 'License'). You may not use this file except in
9*1b191cb5SApple OSS Distributions * compliance with the License. The rights granted to you under the License
10*1b191cb5SApple OSS Distributions * may not be used to create, or enable the creation or redistribution of,
11*1b191cb5SApple OSS Distributions * unlawful or unlicensed copies of an Apple operating system, or to
12*1b191cb5SApple OSS Distributions * circumvent, violate, or enable the circumvention or violation of, any
13*1b191cb5SApple OSS Distributions * terms of an Apple operating system software license agreement.
14*1b191cb5SApple OSS Distributions *
15*1b191cb5SApple OSS Distributions * Please obtain a copy of the License at
16*1b191cb5SApple OSS Distributions * http://www.opensource.apple.com/apsl/ and read it before using this file.
17*1b191cb5SApple OSS Distributions *
18*1b191cb5SApple OSS Distributions * The Original Code and all software distributed under the License are
19*1b191cb5SApple OSS Distributions * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20*1b191cb5SApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21*1b191cb5SApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22*1b191cb5SApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23*1b191cb5SApple OSS Distributions * Please see the License for the specific language governing rights and
24*1b191cb5SApple OSS Distributions * limitations under the License.
25*1b191cb5SApple OSS Distributions *
26*1b191cb5SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27*1b191cb5SApple OSS Distributions */
28*1b191cb5SApple OSS Distributions
29*1b191cb5SApple OSS Distributions #define IOKIT_ENABLE_SHARED_PTR
30*1b191cb5SApple OSS Distributions
31*1b191cb5SApple OSS Distributions #include <IOKit/IOFilterInterruptEventSource.h>
32*1b191cb5SApple OSS Distributions #include <IOKit/IOService.h>
33*1b191cb5SApple OSS Distributions #include <IOKit/IOKitDebug.h>
34*1b191cb5SApple OSS Distributions #include <IOKit/IOTimeStamp.h>
35*1b191cb5SApple OSS Distributions #include <IOKit/IOWorkLoop.h>
36*1b191cb5SApple OSS Distributions #include <IOKit/IOInterruptAccountingPrivate.h>
37*1b191cb5SApple OSS Distributions #include <libkern/Block.h>
38*1b191cb5SApple OSS Distributions
39*1b191cb5SApple OSS Distributions #if IOKITSTATS
40*1b191cb5SApple OSS Distributions
41*1b191cb5SApple OSS Distributions #define IOStatisticsInitializeCounter() \
42*1b191cb5SApple OSS Distributions do { \
43*1b191cb5SApple OSS Distributions IOStatistics::setCounterType(IOEventSource::reserved->counter, kIOStatisticsFilterInterruptEventSourceCounter); \
44*1b191cb5SApple OSS Distributions } while (0)
45*1b191cb5SApple OSS Distributions
46*1b191cb5SApple OSS Distributions #define IOStatisticsInterrupt() \
47*1b191cb5SApple OSS Distributions do { \
48*1b191cb5SApple OSS Distributions IOStatistics::countInterrupt(IOEventSource::reserved->counter); \
49*1b191cb5SApple OSS Distributions } while (0)
50*1b191cb5SApple OSS Distributions
51*1b191cb5SApple OSS Distributions #else
52*1b191cb5SApple OSS Distributions
53*1b191cb5SApple OSS Distributions #define IOStatisticsInitializeCounter()
54*1b191cb5SApple OSS Distributions #define IOStatisticsInterrupt()
55*1b191cb5SApple OSS Distributions
56*1b191cb5SApple OSS Distributions #endif /* IOKITSTATS */
57*1b191cb5SApple OSS Distributions
58*1b191cb5SApple OSS Distributions #define super IOInterruptEventSource
59*1b191cb5SApple OSS Distributions
60*1b191cb5SApple OSS Distributions OSDefineMetaClassAndStructors
61*1b191cb5SApple OSS Distributions (IOFilterInterruptEventSource, IOInterruptEventSource)
62*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 0);
63*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 1);
64*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 2);
65*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 3);
66*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 4);
67*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 5);
68*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 6);
69*1b191cb5SApple OSS Distributions OSMetaClassDefineReservedUnused(IOFilterInterruptEventSource, 7);
70*1b191cb5SApple OSS Distributions
71*1b191cb5SApple OSS Distributions /*
72*1b191cb5SApple OSS Distributions * Implement the call throughs for the private protection conversion
73*1b191cb5SApple OSS Distributions */
74*1b191cb5SApple OSS Distributions bool
init(OSObject * inOwner,Action inAction,IOService * inProvider,int inIntIndex)75*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::init(OSObject *inOwner,
76*1b191cb5SApple OSS Distributions Action inAction,
77*1b191cb5SApple OSS Distributions IOService *inProvider,
78*1b191cb5SApple OSS Distributions int inIntIndex)
79*1b191cb5SApple OSS Distributions {
80*1b191cb5SApple OSS Distributions return false;
81*1b191cb5SApple OSS Distributions }
82*1b191cb5SApple OSS Distributions
83*1b191cb5SApple OSS Distributions OSSharedPtr<IOInterruptEventSource>
interruptEventSource(OSObject * inOwner,Action inAction,IOService * inProvider,int inIntIndex)84*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::interruptEventSource(OSObject *inOwner,
85*1b191cb5SApple OSS Distributions Action inAction,
86*1b191cb5SApple OSS Distributions IOService *inProvider,
87*1b191cb5SApple OSS Distributions int inIntIndex)
88*1b191cb5SApple OSS Distributions {
89*1b191cb5SApple OSS Distributions return NULL;
90*1b191cb5SApple OSS Distributions }
91*1b191cb5SApple OSS Distributions
92*1b191cb5SApple OSS Distributions bool
init(OSObject * inOwner,Action inAction,Filter inFilterAction,IOService * inProvider,int inIntIndex)93*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::init(OSObject *inOwner,
94*1b191cb5SApple OSS Distributions Action inAction,
95*1b191cb5SApple OSS Distributions Filter inFilterAction,
96*1b191cb5SApple OSS Distributions IOService *inProvider,
97*1b191cb5SApple OSS Distributions int inIntIndex)
98*1b191cb5SApple OSS Distributions {
99*1b191cb5SApple OSS Distributions if (!super::init(inOwner, inAction, inProvider, inIntIndex)) {
100*1b191cb5SApple OSS Distributions return false;
101*1b191cb5SApple OSS Distributions }
102*1b191cb5SApple OSS Distributions
103*1b191cb5SApple OSS Distributions if (!inFilterAction) {
104*1b191cb5SApple OSS Distributions return false;
105*1b191cb5SApple OSS Distributions }
106*1b191cb5SApple OSS Distributions
107*1b191cb5SApple OSS Distributions filterAction = inFilterAction;
108*1b191cb5SApple OSS Distributions
109*1b191cb5SApple OSS Distributions IOStatisticsInitializeCounter();
110*1b191cb5SApple OSS Distributions
111*1b191cb5SApple OSS Distributions return true;
112*1b191cb5SApple OSS Distributions }
113*1b191cb5SApple OSS Distributions
114*1b191cb5SApple OSS Distributions OSSharedPtr<IOFilterInterruptEventSource>
115*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource
filterInterruptEventSource(OSObject * inOwner,Action inAction,Filter inFilterAction,IOService * inProvider,int inIntIndex)116*1b191cb5SApple OSS Distributions ::filterInterruptEventSource(OSObject *inOwner,
117*1b191cb5SApple OSS Distributions Action inAction,
118*1b191cb5SApple OSS Distributions Filter inFilterAction,
119*1b191cb5SApple OSS Distributions IOService *inProvider,
120*1b191cb5SApple OSS Distributions int inIntIndex)
121*1b191cb5SApple OSS Distributions {
122*1b191cb5SApple OSS Distributions OSSharedPtr<IOFilterInterruptEventSource> me = OSMakeShared<IOFilterInterruptEventSource>();
123*1b191cb5SApple OSS Distributions
124*1b191cb5SApple OSS Distributions if (me
125*1b191cb5SApple OSS Distributions && !me->init(inOwner, inAction, inFilterAction, inProvider, inIntIndex)) {
126*1b191cb5SApple OSS Distributions return nullptr;
127*1b191cb5SApple OSS Distributions }
128*1b191cb5SApple OSS Distributions
129*1b191cb5SApple OSS Distributions return me;
130*1b191cb5SApple OSS Distributions }
131*1b191cb5SApple OSS Distributions
132*1b191cb5SApple OSS Distributions
133*1b191cb5SApple OSS Distributions OSSharedPtr<IOFilterInterruptEventSource>
134*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource
filterInterruptEventSource(OSObject * inOwner,IOService * inProvider,int inIntIndex,ActionBlock inAction,FilterBlock inFilterAction)135*1b191cb5SApple OSS Distributions ::filterInterruptEventSource(OSObject *inOwner,
136*1b191cb5SApple OSS Distributions IOService *inProvider,
137*1b191cb5SApple OSS Distributions int inIntIndex,
138*1b191cb5SApple OSS Distributions ActionBlock inAction,
139*1b191cb5SApple OSS Distributions FilterBlock inFilterAction)
140*1b191cb5SApple OSS Distributions {
141*1b191cb5SApple OSS Distributions OSSharedPtr<IOFilterInterruptEventSource> me = OSMakeShared<IOFilterInterruptEventSource>();
142*1b191cb5SApple OSS Distributions
143*1b191cb5SApple OSS Distributions FilterBlock filter = Block_copy(inFilterAction);
144*1b191cb5SApple OSS Distributions if (!filter) {
145*1b191cb5SApple OSS Distributions return nullptr;
146*1b191cb5SApple OSS Distributions }
147*1b191cb5SApple OSS Distributions
148*1b191cb5SApple OSS Distributions if (me
149*1b191cb5SApple OSS Distributions && !me->init(inOwner, (Action) NULL, (Filter) (void (*)(void))filter, inProvider, inIntIndex)) {
150*1b191cb5SApple OSS Distributions Block_release(filter);
151*1b191cb5SApple OSS Distributions return nullptr;
152*1b191cb5SApple OSS Distributions }
153*1b191cb5SApple OSS Distributions me->flags |= kFilterBlock;
154*1b191cb5SApple OSS Distributions me->setActionBlock((IOEventSource::ActionBlock) inAction);
155*1b191cb5SApple OSS Distributions
156*1b191cb5SApple OSS Distributions return me;
157*1b191cb5SApple OSS Distributions }
158*1b191cb5SApple OSS Distributions
159*1b191cb5SApple OSS Distributions
160*1b191cb5SApple OSS Distributions void
free(void)161*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::free( void )
162*1b191cb5SApple OSS Distributions {
163*1b191cb5SApple OSS Distributions if ((kFilterBlock & flags) && filterActionBlock) {
164*1b191cb5SApple OSS Distributions Block_release(filterActionBlock);
165*1b191cb5SApple OSS Distributions }
166*1b191cb5SApple OSS Distributions
167*1b191cb5SApple OSS Distributions super::free();
168*1b191cb5SApple OSS Distributions }
169*1b191cb5SApple OSS Distributions
170*1b191cb5SApple OSS Distributions void
signalInterrupt()171*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::signalInterrupt()
172*1b191cb5SApple OSS Distributions {
173*1b191cb5SApple OSS Distributions bool trace = (gIOKitTrace & kIOTraceIntEventSource) ? true : false;
174*1b191cb5SApple OSS Distributions
175*1b191cb5SApple OSS Distributions IOStatisticsInterrupt();
176*1b191cb5SApple OSS Distributions producerCount++;
177*1b191cb5SApple OSS Distributions
178*1b191cb5SApple OSS Distributions if (trace) {
179*1b191cb5SApple OSS Distributions IOTimeStampStartConstant(IODBG_INTES(IOINTES_SEMA), VM_KERNEL_ADDRHIDE(this), VM_KERNEL_ADDRHIDE(owner));
180*1b191cb5SApple OSS Distributions }
181*1b191cb5SApple OSS Distributions
182*1b191cb5SApple OSS Distributions signalWorkAvailable();
183*1b191cb5SApple OSS Distributions
184*1b191cb5SApple OSS Distributions if (trace) {
185*1b191cb5SApple OSS Distributions IOTimeStampEndConstant(IODBG_INTES(IOINTES_SEMA), VM_KERNEL_ADDRHIDE(this), VM_KERNEL_ADDRHIDE(owner));
186*1b191cb5SApple OSS Distributions }
187*1b191cb5SApple OSS Distributions }
188*1b191cb5SApple OSS Distributions
189*1b191cb5SApple OSS Distributions
190*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::Filter
getFilterAction() const191*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::getFilterAction() const
192*1b191cb5SApple OSS Distributions {
193*1b191cb5SApple OSS Distributions if (kFilterBlock & flags) {
194*1b191cb5SApple OSS Distributions return NULL;
195*1b191cb5SApple OSS Distributions }
196*1b191cb5SApple OSS Distributions return filterAction;
197*1b191cb5SApple OSS Distributions }
198*1b191cb5SApple OSS Distributions
199*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::FilterBlock
getFilterActionBlock() const200*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::getFilterActionBlock() const
201*1b191cb5SApple OSS Distributions {
202*1b191cb5SApple OSS Distributions if (kFilterBlock & flags) {
203*1b191cb5SApple OSS Distributions return filterActionBlock;
204*1b191cb5SApple OSS Distributions }
205*1b191cb5SApple OSS Distributions return NULL;
206*1b191cb5SApple OSS Distributions }
207*1b191cb5SApple OSS Distributions
208*1b191cb5SApple OSS Distributions void
normalInterruptOccurred(void *,IOService *,int)209*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::normalInterruptOccurred
210*1b191cb5SApple OSS Distributions (void */*refcon*/, IOService */*prov*/, int /*source*/)
211*1b191cb5SApple OSS Distributions {
212*1b191cb5SApple OSS Distributions bool filterRes;
213*1b191cb5SApple OSS Distributions uint64_t startTime = 0;
214*1b191cb5SApple OSS Distributions uint64_t endTime = 0;
215*1b191cb5SApple OSS Distributions bool trace = (gIOKitTrace & kIOTraceIntEventSource) ? true : false;
216*1b191cb5SApple OSS Distributions
217*1b191cb5SApple OSS Distributions if (trace) {
218*1b191cb5SApple OSS Distributions IOTimeStampStartConstant(IODBG_INTES(IOINTES_FILTER),
219*1b191cb5SApple OSS Distributions VM_KERNEL_UNSLIDE(filterAction), VM_KERNEL_ADDRHIDE(owner), VM_KERNEL_ADDRHIDE(this), VM_KERNEL_ADDRHIDE(workLoop));
220*1b191cb5SApple OSS Distributions }
221*1b191cb5SApple OSS Distributions
222*1b191cb5SApple OSS Distributions if (IOInterruptEventSource::reserved->statistics) {
223*1b191cb5SApple OSS Distributions if (IA_GET_STATISTIC_ENABLED(kInterruptAccountingFirstLevelTimeIndex)
224*1b191cb5SApple OSS Distributions || IOInterruptEventSource::reserved->statistics->enablePrimaryTimestamp) {
225*1b191cb5SApple OSS Distributions startTime = mach_absolute_time();
226*1b191cb5SApple OSS Distributions }
227*1b191cb5SApple OSS Distributions if (IOInterruptEventSource::reserved->statistics->enablePrimaryTimestamp) {
228*1b191cb5SApple OSS Distributions IOInterruptEventSource::reserved->statistics->primaryTimestamp = startTime;
229*1b191cb5SApple OSS Distributions }
230*1b191cb5SApple OSS Distributions }
231*1b191cb5SApple OSS Distributions
232*1b191cb5SApple OSS Distributions // Call the filter.
233*1b191cb5SApple OSS Distributions if (kFilterBlock & flags) {
234*1b191cb5SApple OSS Distributions filterRes = (filterActionBlock)(this);
235*1b191cb5SApple OSS Distributions } else {
236*1b191cb5SApple OSS Distributions filterRes = (*filterAction)(owner, this);
237*1b191cb5SApple OSS Distributions }
238*1b191cb5SApple OSS Distributions
239*1b191cb5SApple OSS Distributions if (IOInterruptEventSource::reserved->statistics) {
240*1b191cb5SApple OSS Distributions if (IA_GET_STATISTIC_ENABLED(kInterruptAccountingFirstLevelCountIndex)) {
241*1b191cb5SApple OSS Distributions IA_ADD_VALUE(&IOInterruptEventSource::reserved->statistics->interruptStatistics[kInterruptAccountingFirstLevelCountIndex], 1);
242*1b191cb5SApple OSS Distributions }
243*1b191cb5SApple OSS Distributions
244*1b191cb5SApple OSS Distributions if (IA_GET_STATISTIC_ENABLED(kInterruptAccountingFirstLevelTimeIndex)) {
245*1b191cb5SApple OSS Distributions endTime = mach_absolute_time();
246*1b191cb5SApple OSS Distributions IA_ADD_VALUE(&IOInterruptEventSource::reserved->statistics->interruptStatistics[kInterruptAccountingFirstLevelTimeIndex], endTime - startTime);
247*1b191cb5SApple OSS Distributions }
248*1b191cb5SApple OSS Distributions }
249*1b191cb5SApple OSS Distributions
250*1b191cb5SApple OSS Distributions if (trace) {
251*1b191cb5SApple OSS Distributions IOTimeStampEndConstant(IODBG_INTES(IOINTES_FILTER),
252*1b191cb5SApple OSS Distributions VM_KERNEL_ADDRHIDE(filterAction), VM_KERNEL_ADDRHIDE(owner),
253*1b191cb5SApple OSS Distributions VM_KERNEL_ADDRHIDE(this), VM_KERNEL_ADDRHIDE(workLoop));
254*1b191cb5SApple OSS Distributions }
255*1b191cb5SApple OSS Distributions
256*1b191cb5SApple OSS Distributions if (filterRes) {
257*1b191cb5SApple OSS Distributions signalInterrupt();
258*1b191cb5SApple OSS Distributions }
259*1b191cb5SApple OSS Distributions }
260*1b191cb5SApple OSS Distributions
261*1b191cb5SApple OSS Distributions void
disableInterruptOccurred(void *,IOService * prov,int source)262*1b191cb5SApple OSS Distributions IOFilterInterruptEventSource::disableInterruptOccurred
263*1b191cb5SApple OSS Distributions (void */*refcon*/, IOService *prov, int source)
264*1b191cb5SApple OSS Distributions {
265*1b191cb5SApple OSS Distributions bool filterRes;
266*1b191cb5SApple OSS Distributions uint64_t startTime = 0;
267*1b191cb5SApple OSS Distributions uint64_t endTime = 0;
268*1b191cb5SApple OSS Distributions bool trace = (gIOKitTrace & kIOTraceIntEventSource) ? true : false;
269*1b191cb5SApple OSS Distributions
270*1b191cb5SApple OSS Distributions if (trace) {
271*1b191cb5SApple OSS Distributions IOTimeStampStartConstant(IODBG_INTES(IOINTES_FILTER),
272*1b191cb5SApple OSS Distributions VM_KERNEL_UNSLIDE(filterAction), VM_KERNEL_ADDRHIDE(owner), VM_KERNEL_ADDRHIDE(this), VM_KERNEL_ADDRHIDE(workLoop));
273*1b191cb5SApple OSS Distributions }
274*1b191cb5SApple OSS Distributions
275*1b191cb5SApple OSS Distributions if (IOInterruptEventSource::reserved->statistics) {
276*1b191cb5SApple OSS Distributions if (IA_GET_STATISTIC_ENABLED(kInterruptAccountingFirstLevelTimeIndex)
277*1b191cb5SApple OSS Distributions || IOInterruptEventSource::reserved->statistics->enablePrimaryTimestamp) {
278*1b191cb5SApple OSS Distributions startTime = mach_absolute_time();
279*1b191cb5SApple OSS Distributions }
280*1b191cb5SApple OSS Distributions if (IOInterruptEventSource::reserved->statistics->enablePrimaryTimestamp) {
281*1b191cb5SApple OSS Distributions IOInterruptEventSource::reserved->statistics->primaryTimestamp = startTime;
282*1b191cb5SApple OSS Distributions }
283*1b191cb5SApple OSS Distributions }
284*1b191cb5SApple OSS Distributions
285*1b191cb5SApple OSS Distributions // Call the filter.
286*1b191cb5SApple OSS Distributions if (kFilterBlock & flags) {
287*1b191cb5SApple OSS Distributions filterRes = (filterActionBlock)(this);
288*1b191cb5SApple OSS Distributions } else {
289*1b191cb5SApple OSS Distributions filterRes = (*filterAction)(owner, this);
290*1b191cb5SApple OSS Distributions }
291*1b191cb5SApple OSS Distributions
292*1b191cb5SApple OSS Distributions if (IOInterruptEventSource::reserved->statistics) {
293*1b191cb5SApple OSS Distributions if (IA_GET_STATISTIC_ENABLED(kInterruptAccountingFirstLevelCountIndex)) {
294*1b191cb5SApple OSS Distributions IA_ADD_VALUE(&IOInterruptEventSource::reserved->statistics->interruptStatistics[kInterruptAccountingFirstLevelCountIndex], 1);
295*1b191cb5SApple OSS Distributions }
296*1b191cb5SApple OSS Distributions
297*1b191cb5SApple OSS Distributions if (IA_GET_STATISTIC_ENABLED(kInterruptAccountingFirstLevelTimeIndex)) {
298*1b191cb5SApple OSS Distributions endTime = mach_absolute_time();
299*1b191cb5SApple OSS Distributions IA_ADD_VALUE(&IOInterruptEventSource::reserved->statistics->interruptStatistics[kInterruptAccountingFirstLevelTimeIndex], endTime - startTime);
300*1b191cb5SApple OSS Distributions }
301*1b191cb5SApple OSS Distributions }
302*1b191cb5SApple OSS Distributions
303*1b191cb5SApple OSS Distributions if (trace) {
304*1b191cb5SApple OSS Distributions IOTimeStampEndConstant(IODBG_INTES(IOINTES_FILTER),
305*1b191cb5SApple OSS Distributions VM_KERNEL_UNSLIDE(filterAction), VM_KERNEL_ADDRHIDE(owner), VM_KERNEL_ADDRHIDE(this), VM_KERNEL_ADDRHIDE(workLoop));
306*1b191cb5SApple OSS Distributions }
307*1b191cb5SApple OSS Distributions
308*1b191cb5SApple OSS Distributions if (filterRes) {
309*1b191cb5SApple OSS Distributions prov->disableInterrupt(source); /* disable the interrupt */
310*1b191cb5SApple OSS Distributions signalInterrupt();
311*1b191cb5SApple OSS Distributions }
312*1b191cb5SApple OSS Distributions }
313