Lines Matching defs:notify

1368     _IOServiceInterestNotifier *	notify;
1373 else if( (notify = OSDynamicCast( _IOServiceInterestNotifier, client))) {
1381 willNotify = (0 != (kIOServiceNotifyEnable & notify->state));
1384 queue_enter( &notify->handlerInvocations, &invocation,
1391 ret = (*notify->handler)( notify->target, notify->ref,
1395 queue_remove( &notify->handlerInvocations, &invocation,
1397 if( kIOServiceNotifyWaiter & notify->state) {
1398 notify->state &= ~kIOServiceNotifyWaiter;
1399 WAKEUPNOTIFY( notify );
1430 _IOServiceInterestNotifier * notify;
1432 queue_element(entry, notify, _IOServiceInterestNotifier *, chain);
1433 copyArray->setObject(notify);
1503 _IOServiceInterestNotifier * notify = 0;
1515 notify = new _IOServiceInterestNotifier;
1516 if( notify && !notify->init()) {
1517 notify->release();
1518 notify = 0;
1521 if( notify) {
1522 notify->handler = handler;
1523 notify->target = target;
1524 notify->ref = ref;
1525 notify->state = kIOServiceNotifyEnable;
1526 queue_init( &notify->handlerInvocations );
1544 enqueue(&notifyList->fCommandChain, &notify->chain);
1545 notify->retain(); // ref'ed while in list
1553 return( notify );
1566 _IOServiceInterestNotifier * notify;
1568 queue_element(entry, notify, _IOServiceInterestNotifier *, chain);
1569 notify->release();
2489 _IOServiceNotifier * notify;
2495 else if( (notify = OSDynamicCast( _IOServiceNotifier, entry)))
2496 return( notify->priority );
2563 bool IOService::invokeNotifer( _IOServiceNotifier * notify )
2572 willNotify = (0 != (kIOServiceNotifyEnable & notify->state));
2575 queue_enter( &notify->handlerInvocations, &invocation,
2582 ret = (*notify->handler)(notify->target, notify->ref, this, notify);
2585 queue_remove( &notify->handlerInvocations, &invocation,
2587 if( kIOServiceNotifyWaiter & notify->state) {
2588 notify->state &= ~kIOServiceNotifyWaiter;
2589 WAKEUPNOTIFY( notify );
2616 _IOServiceNotifier * notify;
2632 if( (notify = OSDynamicCast( _IOServiceNotifier, nextMatch ))) {
2636 invokeNotifer( notify );
3095 _IOServiceNotifier * notify;
3127 while((notify = (_IOServiceNotifier *)
3130 if( matchPassive(notify->matching, 0)
3131 && (kIOServiceNotifyEnable & notify->state))
3132 matches->setObject( notify );
3762 _IOServiceNotifier * notify = 0;
3768 notify = new _IOServiceNotifier;
3769 if( notify && !notify->init()) {
3770 notify->release();
3771 notify = 0;
3774 if( notify) {
3775 notify->handler = handler;
3776 notify->target = target;
3777 notify->matching = matching;
3781 notify->compatHandler = ((_IOServiceMatchingNotificationHandlerRef *)ref)->handler;
3782 notify->ref = ((_IOServiceMatchingNotificationHandlerRef *)ref)->ref;
3785 notify->ref = ref;
3786 notify->priority = priority;
3787 notify->state = kIOServiceNotifyEnable;
3788 queue_init( &notify->handlerInvocations );
3800 notify->whence = set;
3802 set->setObject( notify );
3805 return( notify );
3816 IONotifier * notify;
3836 notify = setNotification( type, matching, handler, target, ref, priority );
3846 return( notify );
3877 IONotifier * notify;
3881 notify = doInstallNotification( type, matching, handler, target, ref,
3886 return( notify );
3917 _IOServiceNotifier * notify;
3920 notify = (_IOServiceNotifier *) installNotification( type, matching,
3926 notify->retain(); // in case handler remove()s
3931 next->invokeNotifer( notify );
3934 notify->release();
3938 return( notify );
3962 IONotifier * notify = 0;
3979 notify = IOService::setNotification( gIOMatchedNotification, matching,
3982 if (!notify)
4000 if (notify)
4001 notify->remove(); // dequeues
4033 _IOServiceNotifier * notify;
4048 while( (notify = (_IOServiceNotifier *) iter->getNextObject())) {
4050 if( matchPassive(notify->matching, 0)
4051 && (kIOServiceNotifyEnable & notify->state)) {
4055 willSend->setObject( notify );
4068 (notify = (_IOServiceNotifier *) willSend->getObject(idx));
4070 invokeNotifer( notify );