Lines Matching defs:victim
973 ArbitrationLockQueueElement * victim = 0;
999 victim = waiting;
1033 if( victim ) {
1035 // we do have a willing victim, fail it's lock
1036 victim->aborted = true;
1038 // take the victim off the waiting queue
1040 victim,
1044 // wake the victim
1046 victim,
1652 IOService * victim;
1673 victim = this;
1674 victim->retain();
1676 while( victim ) {
1678 didInactive = victim->lockForArbitration( true );
1680 didInactive = (0 == (victim->__state[0] & kIOServiceInactiveState));
1682 victim->__state[0] |= kIOServiceInactiveState;
1683 victim->__state[0] &= ~(kIOServiceRegisteredState | kIOServiceMatchedState
1685 victim->_adjustBusy( 1 );
1687 victim->unlockForArbitration();
1689 if( victim == this)
1693 victim->deliverNotification( gIOTerminatedNotification, 0, 0xffffffff );
1694 IOUserClient::destroyUserReferences( victim );
1696 iter = victim->getClientIterator();
1700 client->getName(), victim->getName(), options);
1701 ok = client->requestTerminate( victim, options );
1703 client->getName(), victim->getName(), ok);
1710 victim->release();
1711 victim = (IOService *) makeInactive->getObject(0);
1712 if( victim) {
1713 victim->retain();
1758 // wait for the victim to go non-busy
1865 void IOService::actionWillTerminate( IOService * victim, IOOptionBits options,
1872 iter = victim->getClientIterator();
1876 client->getName(), victim->getName(), options);
1877 ok = client->willTerminate( victim, options );
1884 void IOService::actionDidTerminate( IOService * victim, IOOptionBits options )
1890 victim->messageClients( kIOMessageServiceIsTerminated, (void *) options );
1892 iter = victim->getClientIterator();
1896 client->getName(), victim->getName(), options);
1897 client->didTerminate( victim, options, &defer );
1899 client->getName(), victim->getName(), defer);
1905 void IOService::actionFinalize( IOService * victim, IOOptionBits options )
1907 TLOG("%s::finalize(%08lx)\n", victim->getName(), options);
1908 victim->finalize( options );
1927 IOService * victim;
1946 while( (victim = (IOService *) gIOTerminatePhase2List->getObject(0) )) {
1948 victim->retain();
1952 while( victim ) {
1954 doPhase2 = victim->lockForArbitration( true );
1956 doPhase2 = (0 != (kIOServiceInactiveState & victim->__state[0]));
1958 doPhase2 = (0 == (victim->__state[1] & kIOServiceTermPhase2State))
1959 && (0 == (victim->__state[1] & kIOServiceConfigState));
1961 victim->__state[1] |= kIOServiceTermPhase2State;
1963 victim->unlockForArbitration();
1966 if( 0 == victim->getClient()) {
1969 gIOFinalizeList->tailQ( victim );
1973 victim, (void *) options, (void *) doPhase2List );
1975 didPhase2List->headQ( victim );
1977 victim->release();
1978 victim = (IOService *) doPhase2List->getObject(0);
1979 if( victim) {
1980 victim->retain();
1985 while( (victim = (IOService *) didPhase2List->getObject(0)) ) {
1987 if( victim->lockForArbitration( true )) {
1988 victim->__state[1] |= kIOServiceTermPhase3State;
1989 victim->unlockForArbitration();
1992 victim, (void *) options );
2002 while( (victim = (IOService *) gIOFinalizeList->getObject(0))) {
2006 victim, (void *) options );
2009 freeList->setObject( victim );