Lines Matching refs:notify
1315 _IOServiceInterestNotifier * notify;
1320 else if( (notify = OSDynamicCast( _IOServiceInterestNotifier, client))) {
1328 willNotify = (0 != (kIOServiceNotifyEnable & notify->state));
1331 queue_enter( ¬ify->handlerInvocations, &invocation,
1338 ret = (*notify->handler)( notify->target, notify->ref,
1342 queue_remove( ¬ify->handlerInvocations, &invocation,
1344 if( kIOServiceNotifyWaiter & notify->state) {
1345 notify->state &= ~kIOServiceNotifyWaiter;
1346 WAKEUPNOTIFY( notify );
1377 _IOServiceInterestNotifier * notify;
1379 queue_element(entry, notify, _IOServiceInterestNotifier *, chain);
1380 copyArray->setObject(notify);
1450 _IOServiceInterestNotifier * notify = 0;
1461 notify = new _IOServiceInterestNotifier;
1462 if( notify && !notify->init()) {
1463 notify->release();
1464 notify = 0;
1467 if( notify) {
1468 notify->handler = handler;
1469 notify->target = target;
1470 notify->ref = ref;
1471 notify->state = kIOServiceNotifyEnable;
1472 queue_init( ¬ify->handlerInvocations );
1490 enqueue(¬ifyList->fCommandChain, ¬ify->chain);
1491 notify->retain(); // ref'ed while in list
1499 return( notify );
1512 _IOServiceInterestNotifier * notify;
1514 queue_element(entry, notify, _IOServiceInterestNotifier *, chain);
1515 notify->release();
2291 _IOServiceNotifier * notify;
2295 if( (notify = OSDynamicCast( _IOServiceNotifier, entry)))
2296 return( notify->priority );
2353 bool IOService::invokeNotifer( _IOServiceNotifier * notify )
2362 willNotify = (0 != (kIOServiceNotifyEnable & notify->state));
2365 queue_enter( ¬ify->handlerInvocations, &invocation,
2372 ret = (*notify->handler)( notify->target, notify->ref, this );
2375 queue_remove( ¬ify->handlerInvocations, &invocation,
2377 if( kIOServiceNotifyWaiter & notify->state) {
2378 notify->state &= ~kIOServiceNotifyWaiter;
2379 WAKEUPNOTIFY( notify );
2406 _IOServiceNotifier * notify;
2424 if( (notify = OSDynamicCast( _IOServiceNotifier, nextMatch ))) {
2428 invokeNotifer( notify );
2893 _IOServiceNotifier * notify;
2923 while((notify = (_IOServiceNotifier *)
2926 if( passiveMatch( notify->matching )
2927 && (kIOServiceNotifyEnable & notify->state))
2928 matches->setObject( notify );
3334 _IOServiceNotifier * notify = 0;
3340 notify = new _IOServiceNotifier;
3341 if( notify && !notify->init()) {
3342 notify->release();
3343 notify = 0;
3346 if( notify) {
3347 notify->matching = matching;
3348 notify->handler = handler;
3349 notify->target = target;
3350 notify->ref = ref;
3351 notify->priority = priority;
3352 notify->state = kIOServiceNotifyEnable;
3353 queue_init( ¬ify->handlerInvocations );
3365 notify->whence = set;
3367 set->setObject( notify );
3370 return( notify );
3381 IONotifier * notify;
3401 notify = setNotification( type, matching, handler, target, ref, priority );
3411 return( notify );
3421 IONotifier * notify;
3425 notify = doInstallNotification( type, matching, handler, target, ref,
3430 return( notify );
3440 _IOServiceNotifier * notify;
3443 notify = (_IOServiceNotifier *) installNotification( type, matching,
3449 notify->retain(); // in case handler remove()s
3454 next->invokeNotifer( notify );
3457 notify->release();
3461 return( notify );
3485 IONotifier * notify = 0;
3511 notify = IOService::setNotification( gIOMatchedNotification, matching,
3519 if( notify) {
3526 if( notify)
3527 notify->remove(); // dequeues
3539 _IOServiceNotifier * notify;
3554 while( (notify = (_IOServiceNotifier *) iter->getNextObject())) {
3556 if( passiveMatch( notify->matching)
3557 && (kIOServiceNotifyEnable & notify->state)) {
3561 willSend->setObject( notify );
3574 (notify = (_IOServiceNotifier *) willSend->getObject(idx));
3576 invokeNotifer( notify );