Lines Matching refs:theKext
61 OSKext * theKext = NULL; // must release in OSKextGetLoadTagForIdentifier() local
67 theKext = OSKext::lookupKextWithIdentifier(kextIdentifier); in OSKextGetLoadTagForIdentifier()
68 if (theKext && theKext->isLoaded()) { in OSKextGetLoadTagForIdentifier()
69 result = theKext->getLoadTag(); in OSKextGetLoadTagForIdentifier()
72 if (theKext) { in OSKextGetLoadTagForIdentifier()
73 theKext->release(); in OSKextGetLoadTagForIdentifier()
90 OSKext * theKext = NULL;// do not release; as this function is a retain in OSKextRetainKextWithLoadTag() local
96 theKext = OSKext::lookupKextWithLoadTag(loadTag); in OSKextRetainKextWithLoadTag()
97 if (theKext) { in OSKextRetainKextWithLoadTag()
100 OSKextLog(theKext, in OSKextRetainKextWithLoadTag()
104 theKext->getIdentifierCString(), in OSKextRetainKextWithLoadTag()
109 theKext->setAutounloadEnabled(true); in OSKextRetainKextWithLoadTag()
111 OSKextLog(theKext, in OSKextRetainKextWithLoadTag()
134 OSKext * theKext = NULL; // must release twice! in OSKextReleaseKextWithLoadTag() local
140 theKext = OSKext::lookupKextWithLoadTag(loadTag); in OSKextReleaseKextWithLoadTag()
141 if (theKext) { in OSKextReleaseKextWithLoadTag()
144 theKext->release(); // do the release the caller wants in OSKextReleaseKextWithLoadTag()
145 theKext->release(); // now do the release on the lookup in OSKextReleaseKextWithLoadTag()
146 OSKextLog(theKext, in OSKextReleaseKextWithLoadTag()
150 theKext->getIdentifierCString(), in OSKextReleaseKextWithLoadTag()
153 OSKextLog(theKext, in OSKextReleaseKextWithLoadTag()